Skip to Content
SSH Keys

Update an existing SSH key

PUT
/ssh-keys/{ssh_key_id}

Path Parameters

ssh_key_id*integer

The ID of the ssh key.

Range1 <= value

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Request Body

A JSON object containing the resource data

application/json
  1. body
id*integer

The unique ID of the given SSH Key.

name*string

The ssh key's name. Must not be greater than 60 characters.

Response Body

No Content

Example Request
curl -X PUT 'https://api.devopness.com/ssh-keys/123' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json' \  -H 'Content-Type: application/json' \  -d '{  "id": 1,  "name": "my-ssh-key"}'
Example Response
Empty