---
title: "Update an SSH key."
method: PATCH
path: "/me/ssh-keys/{sshKeyId}"
tags: ["me"]
---

# Update an SSH key.

`PATCH /me/ssh-keys/{sshKeyId}`

Update the name of an SSH key owned by the currently authenticated user.
- Users can only update their own keys.

## Path parameters

- `sshKeyId` string, uuid, required

## Request body

- UpdateSSHKeyRequest
  - `name` string, required — Human-readable name for the SSH key.

## Response `200`

Successfully updated the SSH key.

## Other responses

- `400` — - [group:**request**, code:**0**]: Invalid field in the request. - [group:**request**, code:**1**]: The request body is required.
- `403` — - [group:**ssh-key**, code:**501**]: The user has no permission to access the SSH key.
- `500` — - [group:**ssh-key**, code:**1202**]: Get SSH key encountered DB error. - [group:**ssh-key**, code:**1400**]: Update SSH key encountered DB error.

---

[API](https://skmtc.net/gmicloud/apis/cluster-engine-api.md) · [All operations](https://skmtc.net/gmicloud/apis/cluster-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gmicloud/cluster-engine-api/versions/bcbab016469f/schema)
