---
title: "Update an SSH Key"
method: PATCH
path: "/v2/org/{org}/nico/sshkey/{sshKeyId}"
tags: ["SSH Key"]
---

# Update an SSH Key

`PATCH /v2/org/{org}/nico/sshkey/{sshKeyId}`

Update an SSH Key for the current Tenant by ID.

SSH Key must be owned by current Tenant.

Org must have a Tenant entity. User must have authorization role with `TENANT_ADMIN` suffix.

To add this SSH Key to various SSH Key Groups or remove it from an SSH Key Group, please use SSH Key Group update endpoint.

## Request body

- SshKeyUpdateRequest — Request data to update an SSH key
  - `name` string, nullable — Name of the SSHKey

## Response `200`

OK

- SshKey — Details of SSH public key
  - `id` string, uuid — Unique identifier for the key
  - `name` string — Name of the SSHKey
  - `org` string — Organization the SSHKey belongs to
  - `tenantId` string, uuid — ID of the Tenant
  - `fingerprint` string — SHA256 fingerprint of the public key
  - `created` string, date-time — Date/time when the SSH key was created
  - `updated` string, date-time — Date/time when the SSH key was last updated

## Other responses

- `400` — Error response when request data cannot be validated
- `403` — Error response when user is not authorized to call an endpoint or retrieve/modify objects

---

[API](https://skmtc.dev/nvidia/apis/nvidia-infra-controller-rest-api.md) · [All operations](https://skmtc.dev/nvidia/apis/nvidia-infra-controller-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nvidia/nvidia-infra-controller-rest-api/revisions/2096eb1db2c1/schema)
