---
title: "Update an SSH Key"
method: PATCH
path: "/ssh-keys/{account_ssh_key}"
tags: ["ssh_keys"]
---

# Update an SSH Key

`PATCH /ssh-keys/{account_ssh_key}`

This endpoint allows updates to attributes of an existing SSH key.

## Path parameters

- `account_ssh_key` string, required

## Response `200`

Updated.

## Other responses

- `403` — User unauthorized to perform action.
- `404` — SSH key not found or user unauthorized to perform action.
- `422` — Malformed request body (missing attributes, wrong types, etc.).
- `4XX` — Client error.
- `5XX` — Server error.

---

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