PUT /v2/account/keys/{ssh_key_identifier}
To update the name of an SSH key, send a PUT request to either /v2/account/keys/$SSH_KEY_ID
or /v2/account/keys/$SSH_KEY_FINGERPRINT
. Set the name
attribute to the new name you want to use.
Servers
- https://api.digitalocean.com
Path parameters
Name | Type | Required | Description |
---|---|---|---|
ssh_key_identifier |
Yes |
Either the ID or the fingerprint of an existing SSH key. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
name |
String | No |
A human-readable display name for this key, used to easily identify the SSH keys when they are displayed. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.