Skip to main content
PUT
Update Instance SSH Key

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

id
integer
required

Instance contract ID on which to update the SSH key.

Body

application/json
ssh_key_id
integer

ID of the SSH key record to update.

Example:

42

ssh_key
string

New public key string to set on the SSH key record.

Example:

"ssh-rsa AAAAB3NzaC1yc2E..."

Response

200 - application/json

Returns {success: false, error: "no_such_instance"} if the instance is not found or not owned by the caller, or {success: false, error: "add_ssh_to_instance"} on unexpected error.

success
boolean

True when updated

msg
string

Human-readable status message

key
string

JSON-encoded updated SSH key object