Rename SSH Key
Rename an SSH public key registered on your Nebula Block account.
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
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 key was created. List SSH Keys converts this to an Eastern Time string, so the two endpoints report it differently.
status string
Indicates the result of the request to rename a SSH key. success signifies success, while failed indicates an error.
message string
A description of the status of the request.
Example
Request
Response
Last updated