Skip to main content
PATCH
/
ssh_keys
/
{ssh_key_id}
Update SSH Key
curl --request PATCH \
  --url https://api.cloud.onidel.com/ssh_keys/{ssh_key_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "team_id": "c1d45377-b2a9-4407-ab8d-6909c34dfaac",
  "name": "Updated Server Key",
  "ssh_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC... user@hostname"
}
'

Authorizations

Authorization
string
header
required

Provide the value as: Token <your-api-token>

Path Parameters

ssh_key_id
string<uuid>
required

SSH Key UUID

Body

application/json
team_id
string<uuid>
required
Example:

"c1d45377-b2a9-4407-ab8d-6909c34dfaac"

name
string
required
Example:

"Updated Server Key"

ssh_key
string
required
Example:

"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC... user@hostname"

Response

SSH key updated successfully