---
title: "Rename one of this account's keys."
method: PATCH
path: "/v1/keys/{hash_prefix}"
tags: ["account"]
---

# Rename one of this account's keys.

`PATCH /v1/keys/{hash_prefix}`

## Request

- Base URL: `https://api.japanfold.aiand.com`
- URL: `https://api.japanfold.aiand.com/v1/keys/{hash_prefix}`
- Auth: one of:
  - none
  - HTTP bearer

Changes the label only; the key keeps working. Scoped to the caller's own account.

## Path parameters

- `hash_prefix` string, required

## Request body

- object
  - `name` string: The new label.

## Response `200`

The account, with the key renamed

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `404`: Not found

---

[API](https://skmtc.dev/aiand/apis/japanfold-api.md) · [All operations](https://skmtc.dev/aiand/apis/japanfold-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aiand/apis/japanfold-api/revisions/9f4be813b447?raw)
