Updates the specified user ssh key
PUThttps://api.spectrocloud.com/v1/users/assets/sshkeys/:uid
Authorization: ApiKey
name: ApiKeytype: apiKeydescription: API key authorization where API key can be generated from Palette console under Profile > My API Keysin: header
Updates the specified user ssh key
Request
Path Parameters
uid stringrequired
Specify the SSH key uid
- application/json
Body
metadata object
spec object
Responses
- 204
The resource was updated successfully
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X PUT 'https://api.spectrocloud.com/v1/users/assets/sshkeys/:uid' \
-H 'Content-Type: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
--data-raw '{
"metadata": {
"annotations": {},
"creationTimestamp": "2023-12-01T21:31:48.127Z",
"deletionTimestamp": "2023-12-01T21:31:48.127Z",
"labels": {},
"lastModifiedTimestamp": "2023-12-01T21:31:48.127Z",
"name": "string",
"uid": "string"
},
"spec": {
"publicKey": "string"
}
}'