v1

latestOpenAPI 3.1.02026-07-13897404.3 KB
Accounts

update ssh key

Updates the specified SSH key with the provided value.

CLI Usage: vastai update ssh-key <id> <ssh_key>

put/api/v0/ssh/{id}/

Path parameters

idinteger required

ID of the SSH key to update

Request body

ssh_keystring required

The new value for the SSH key

Example request

{
  "ssh_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3..."
}

Response

SSH key updated successfully

successboolean
keyobject

The updated SSH key data

Example response

{
  "success": true
}