dots.v2.account.keys.bySsh_key_identifier().put()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
client.v2.account.keys.bySsh_key_identifier(ssh_key_identifier).put(body: WithSsh_key_identifierPutRequestBody, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | WithSsh_key_identifierPutResponse>Description
To update the name of an SSH key, send a PUT request to either /v2/account/keys/{ssh_key_identifier} or /v2/account/keys/{ssh_key_identifier}. Set the name attribute to the new name you want to use.
Parameters
Path Parameters
ssh_key_identifierinteger or string requiredExample:
512189Either the ID or the fingerprint of an existing SSH key.
Request Body
namestring optionalExample:
My SSH Public KeyA human-readable display name for this key, used to easily identify the SSH keys when they are displayed.
Request Sample
Response Example
More Information
See /v2/account/keys/{ssh_key_identifier} in the API reference for additional detail on responses, headers, parameters, and more.