Authorizations
Body
Response
200 - application/vnd.api+json
Success
curl --request PATCH \
--url https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"id": "ssh_zlkg1DegdvZE5",
"type": "ssh_keys",
"attributes": {
"tags": [
"tag_7YpWMjKZ8vujwmEV7blQhG87aaB",
"tag_E8ZoPkZPXXsgN2L46WVvTeWog1rz"
]
}
}
}'
{
"data": {
"id": "ssh_zlkg1DegdvZE5",
"type": "ssh_keys",
"attributes": {
"tags": [
{
"id": "tag_7YpWMjKZ8vujwmEV7blQhG87aaB",
"name": "Hugo Boffin",
"description": "Sit sed atque rerum.",
"color": "#f75050"
},
{
"id": "tag_E8ZoPkZPXXsgN2L46WVvTeWog1rz",
"name": "Amrod",
"description": "Eum molestiae consectetur repellendus.",
"color": "#82ed82"
}
],
"name": "quitzon-hahn.example",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIPUwSU0uUOOHaiRgNvchWwbE1mMsLIXiMhsWu2HYCCskWhI87AIGGhesf8iqv/L61ZR4xSY2vpS+Ydj9m6DAIcbw4SrwCCbzYlSnJC8A3DNplfH8Yv3w1moJkryIu0Y1OPFstvr4UKLQKBzNPR5cjKKmJPX34BrmubNhRCOi9MR33UZAn+ek7Y6soHx+ftGNfLQTNCRa9l1pWk+zcaw3f1rIgrgCxRJZUxsfhAvhrH6gMQ52J4YPTwNYXiDz183lCXQ7ttCraTZOkt9Wrjes9GpAWdyAb54/YxB9C3a5Yuekd3affxWf5qS6iPH2cH4WqD85cCiAHWgP50QDy0Jzx",
"fingerprint": "0a:d4:d1:f6:4a:b9:eb:d9:fc:b1:7f:3d:b1:7d:78:94",
"created_at": "2025-07-16T18:36:39+00:00",
"updated_at": "2025-07-16T18:36:39+00:00",
"user": {
"id": "user_9LywwYp44LHZ8aarom8ziRm9MJw",
"first_name": "Tennie",
"last_name": "Cremin",
"email": "antone.ward@streich.example",
"created_at": "2024-09-10T00:00:00.000Z",
"updated_at": "2024-12-12T00:00:00.000Z",
"role": {
"id": "role_wJZBnlQNwyhXGWEnZZGosBzP2VM",
"name": "owner",
"created_at": "2025-04-05T00:00:00.000Z",
"updated_at": "2026-03-06T00:00:00.000Z"
}
}
}
},
"meta": {}
}
Allow you update SSH Key in a project. These keys can be used to access servers after deploy and reinstall actions.
curl --request PATCH \
--url https://api.latitude.sh/projects/{project_id}/ssh_keys/{ssh_key_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"id": "ssh_zlkg1DegdvZE5",
"type": "ssh_keys",
"attributes": {
"tags": [
"tag_7YpWMjKZ8vujwmEV7blQhG87aaB",
"tag_E8ZoPkZPXXsgN2L46WVvTeWog1rz"
]
}
}
}'
{
"data": {
"id": "ssh_zlkg1DegdvZE5",
"type": "ssh_keys",
"attributes": {
"tags": [
{
"id": "tag_7YpWMjKZ8vujwmEV7blQhG87aaB",
"name": "Hugo Boffin",
"description": "Sit sed atque rerum.",
"color": "#f75050"
},
{
"id": "tag_E8ZoPkZPXXsgN2L46WVvTeWog1rz",
"name": "Amrod",
"description": "Eum molestiae consectetur repellendus.",
"color": "#82ed82"
}
],
"name": "quitzon-hahn.example",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIPUwSU0uUOOHaiRgNvchWwbE1mMsLIXiMhsWu2HYCCskWhI87AIGGhesf8iqv/L61ZR4xSY2vpS+Ydj9m6DAIcbw4SrwCCbzYlSnJC8A3DNplfH8Yv3w1moJkryIu0Y1OPFstvr4UKLQKBzNPR5cjKKmJPX34BrmubNhRCOi9MR33UZAn+ek7Y6soHx+ftGNfLQTNCRa9l1pWk+zcaw3f1rIgrgCxRJZUxsfhAvhrH6gMQ52J4YPTwNYXiDz183lCXQ7ttCraTZOkt9Wrjes9GpAWdyAb54/YxB9C3a5Yuekd3affxWf5qS6iPH2cH4WqD85cCiAHWgP50QDy0Jzx",
"fingerprint": "0a:d4:d1:f6:4a:b9:eb:d9:fc:b1:7f:3d:b1:7d:78:94",
"created_at": "2025-07-16T18:36:39+00:00",
"updated_at": "2025-07-16T18:36:39+00:00",
"user": {
"id": "user_9LywwYp44LHZ8aarom8ziRm9MJw",
"first_name": "Tennie",
"last_name": "Cremin",
"email": "antone.ward@streich.example",
"created_at": "2024-09-10T00:00:00.000Z",
"updated_at": "2024-12-12T00:00:00.000Z",
"role": {
"id": "role_wJZBnlQNwyhXGWEnZZGosBzP2VM",
"name": "owner",
"created_at": "2025-04-05T00:00:00.000Z",
"updated_at": "2026-03-06T00:00:00.000Z"
}
}
}
},
"meta": {}
}
Show child attributes
Success
Show child attributes
Was this page helpful?