Updates SSH identity data.
Required permission
Account > Ssh > General > Update
Path parameters
identityId
string requiredID of the SSH identity
Request body
- {object}
description
stringmax length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$sshPublicKeys
[array]A list of SSH public keys.- {object}
key
string requiredThe SSH public key.restrictions
{object}projects
{object}enabled
booleanWhether restriction by project should be enabled.items
[array]An array of previously defined projects.- stringmin length3max length100pattern^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
updatedAt
stringtime of updatecreatedAt
stringtime of creation
Response body
- {object}Response object.
data
{object} requiredResult data.
API
CLI
JS Client
PATCH /v1/integrations/ssh-identities/{identityId}
PATCH /v1/teams/{teamId}/integrations/ssh-identities/{identityId}
Example request
Request body
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request PATCH \
--data '{"sshPublicKeys":[{"key":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..."}],"restrictions":{"projects":{"enabled":false},"tags":{"enabled":false,"matchCondition":"or"}}}' \
https://api.northflank.com/v1/integrations/ssh-identities/{identityId}Example response
200 OK
The operation was performed successfully.
JSON
{
"data": {}
}