Skip to main content
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": {}
}

Documentation Index

Fetch the complete documentation index at: https://vastai-80aa3a82-feat-host-3113-dynamic-resize.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

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