Rename SSH Key
Updates the name of a specified SSH key. Include the ID of the SSH key in the endpoint path and the new name in the body of the request. To retrieve your SSH key IDs, see the List SSH Keys API.
HTTP Request
PUT
{API_URL}/ssh-keys/{id}
Path Parameters
id
Required
int
The unique identifier of the SSH key to be renamed
Body Parameters
key_name
Required
string
The new name of the SSH key
Response Attributes
data dict
dict
Returns the data
object, containing details of the updated SSH Key.
Each updated SSH key specifies the following properties:
id
: The ID of the SSH key.key_name
: The new name of the SSH key.key_data
: The SSH key value.create_time
: The UNIX timestamp of when the SSH Key was created.
status string
string
Indicates the result of the request to rename a SSH key. success
signifies success, while failed
indicates an error.
message string
string
A description of the status of the request.
Example
Request
Response
Last updated