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_rB7B21L1QbiJ6yWYxQLmHWJE3GmR",
"tag_57nzyG0Bn3c5wooyYyeLH1w9kmN"
]
}
}
}
'{
"data": {
"id": "ssh_zlkg1DegdvZE5",
"type": "ssh_keys",
"attributes": {
"tags": [
{
"id": "tag_rB7B21L1QbiJ6yWYxQLmHWJE3GmR",
"name": "Dáin Ironfoot",
"description": "Non quos voluptatem voluptatem.",
"color": "#254646"
},
{
"id": "tag_57nzyG0Bn3c5wooyYyeLH1w9kmN",
"name": "Almiel",
"description": "Repellendus quae velit rerum.",
"color": "#2121e8"
}
],
"name": "ruecker.example",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbDuCsEBno4lL6+lLXiBuziWK+go4/TQ2xXWNkyO9PEQSwp8t7fu5USARgUl5HxRK2K+enzTOGVYG+IGWTh8GsNQ68D+6VQZDafStcAoRX7/drrIbkMho3Fv5o5mfjIeMB9A6yT7FxsWFx4VkV8wlCLn3HSq/Q2fvuKh3j10B/ZKCG14K2Que9xrGhCbAGVzxrCozWc4yCdpXSL0CFUOOQDpOa44VzcMVkXqxyaJYDjlxMklfGQ/81YjtM5hne0kFPajeVmHZGQ7QsZZEww/P7c0pL44n9b/sYmzHOuZYFCM3MuU2pfonEJBOVfFVeXh5pPvUmis8mxxCAQhtzJE4D",
"fingerprint": "17:c4:55:c4:1b:a3:1f:fd:89:70:2d:c3:55:7a:4c:6e",
"created_at": "2026-01-14T15:56:42+00:00",
"updated_at": "2026-01-14T15:56:42+00:00",
"project": {
"id": "proj_v9BVDaR3ORm1W",
"name": "Sleek Linen Lamp",
"slug": "sleek-linen-lamp",
"description": "Ergonomic Rubber Gloves",
"provisioning_type": "on_demand",
"billing_type": "Normal",
"billing_method": "Normal",
"bandwidth_alert": false,
"environment": null,
"billing": {},
"stats": {
"databases": 0,
"ip_addresses": 0,
"prefixes": 0,
"servers": 0,
"storages": 0,
"virtual_machines": 0,
"vlans": 0
}
},
"user": {
"id": "user_Rzg2JEoZNASA1bznzWJBI6GXJ0v",
"first_name": "Meghann",
"last_name": "Windler",
"email": "[email protected]",
"created_at": "2026-01-10T00:00:00.000Z",
"updated_at": "2025-03-26T00:00:00.000Z",
"role": {
"id": "role_6noZ5alPanUpr0yoVygMCL6mK88",
"name": "owner",
"created_at": "2025-07-29T00:00:00.000Z",
"updated_at": "2026-05-30T00: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_rB7B21L1QbiJ6yWYxQLmHWJE3GmR",
"tag_57nzyG0Bn3c5wooyYyeLH1w9kmN"
]
}
}
}
'{
"data": {
"id": "ssh_zlkg1DegdvZE5",
"type": "ssh_keys",
"attributes": {
"tags": [
{
"id": "tag_rB7B21L1QbiJ6yWYxQLmHWJE3GmR",
"name": "Dáin Ironfoot",
"description": "Non quos voluptatem voluptatem.",
"color": "#254646"
},
{
"id": "tag_57nzyG0Bn3c5wooyYyeLH1w9kmN",
"name": "Almiel",
"description": "Repellendus quae velit rerum.",
"color": "#2121e8"
}
],
"name": "ruecker.example",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbDuCsEBno4lL6+lLXiBuziWK+go4/TQ2xXWNkyO9PEQSwp8t7fu5USARgUl5HxRK2K+enzTOGVYG+IGWTh8GsNQ68D+6VQZDafStcAoRX7/drrIbkMho3Fv5o5mfjIeMB9A6yT7FxsWFx4VkV8wlCLn3HSq/Q2fvuKh3j10B/ZKCG14K2Que9xrGhCbAGVzxrCozWc4yCdpXSL0CFUOOQDpOa44VzcMVkXqxyaJYDjlxMklfGQ/81YjtM5hne0kFPajeVmHZGQ7QsZZEww/P7c0pL44n9b/sYmzHOuZYFCM3MuU2pfonEJBOVfFVeXh5pPvUmis8mxxCAQhtzJE4D",
"fingerprint": "17:c4:55:c4:1b:a3:1f:fd:89:70:2d:c3:55:7a:4c:6e",
"created_at": "2026-01-14T15:56:42+00:00",
"updated_at": "2026-01-14T15:56:42+00:00",
"project": {
"id": "proj_v9BVDaR3ORm1W",
"name": "Sleek Linen Lamp",
"slug": "sleek-linen-lamp",
"description": "Ergonomic Rubber Gloves",
"provisioning_type": "on_demand",
"billing_type": "Normal",
"billing_method": "Normal",
"bandwidth_alert": false,
"environment": null,
"billing": {},
"stats": {
"databases": 0,
"ip_addresses": 0,
"prefixes": 0,
"servers": 0,
"storages": 0,
"virtual_machines": 0,
"vlans": 0
}
},
"user": {
"id": "user_Rzg2JEoZNASA1bznzWJBI6GXJ0v",
"first_name": "Meghann",
"last_name": "Windler",
"email": "[email protected]",
"created_at": "2026-01-10T00:00:00.000Z",
"updated_at": "2025-03-26T00:00:00.000Z",
"role": {
"id": "role_6noZ5alPanUpr0yoVygMCL6mK88",
"name": "owner",
"created_at": "2025-07-29T00:00:00.000Z",
"updated_at": "2026-05-30T00:00:00.000Z"
}
}
}
},
"meta": {}
}Was this page helpful?