---
title: "Update a saved SSH key"
method: PATCH
path: "/v1/ssh-keys/{id}"
tags: ["public", "ssh-keys"]
---

# Update a saved SSH key

`PATCH /v1/ssh-keys/{id}`

## Request

- Base URL: `https://api.vozora.io`
- URL: `https://api.vozora.io/v1/ssh-keys/{id}`
- Auth: API key in header `Authorization`

Changes the name or the use-by-default flag. The key material itself is immutable — save a new key instead. At least one field must be supplied.

## Path parameters

- `id` string, required

## Request body

- AccountsUpdateSSHKeyRequest
  - `name` string
  - `use_by_default` boolean

## Response `200`

OK

- AccountsPublicSSHKey
  - `algorithm` string
  - `created_at` string
  - `fingerprint` string
  - `id` string
  - `name` string
  - `public_key` string
  - `updated_at` string
  - `use_by_default` boolean

## Other responses

- `400`: invalid body or no mutable field supplied
- `401`: invalid or missing API key
- `403`: the key lacks ssh_keys:write
- `404`: no such SSH key
- `409`: ssh_key_mutation_unavailable

---

[API](https://skmtc.dev/vozora/apis/vozora-api.md) · [All operations](https://skmtc.dev/vozora/apis/vozora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vozora/apis/vozora-api/revisions/56f15734fc5a?raw)
