Sign up

Delete an SSH key

DELETE/api/v1/ssh-keys/{key_id}

Deletes a key from the account. Servers that have it keep it.

Parameters

NameInDescription
key_idpath, integerrequiredSSH key id, from List SSH keys

Example request

curl -X DELETE "https://platform.serverscamp.com/api/v1/ssh-keys/$KEY_ID" \
  -H "Authorization: Bearer $API_TOKEN"

Answer

Status 200 with this body.

FieldTypeDescription
successbooleanOperation success
messagestring, optionalSuccess message
dataobject, optionalAdditional data
{
  "success": true,
  "message": "SSH key deleted"
}

Errors

StatusWhen
401No token, or a token that is not valid
404No such key in your account
422The body or a parameter is not what the operation takes

Every operation can also answer 401 without a valid token. All errors