PUT
/
api
/
v0
/
ssh
/
{id}
/
update ssh key
curl --request PUT \
  --url https://console.vast.ai/api/v0/ssh/{id}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ssh_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3..."
}'
{
  "success": true,
  "key": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

ID of the SSH key to update

Body

application/json
ssh_key
string
required

The new value for the SSH key

Example:

"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3..."

Response

SSH key updated successfully

success
boolean
Example:

true

key
object

The updated SSH key data