---
title: "Update"
method: PATCH
path: "/api_keys/{id}"
tags: ["apiKeys"]
---

# Update

`PATCH /api_keys/{id}`

Updates an API key.

## Path parameters

- `id` string, required

## Headers

- `Authorization` string, required

## Request body

- UpdateApiKeyRequest
  - `name` string, required — The new name for the API key.

## Response `200`

Success response

- ApiKeysUpdateResponse200
  - `success` boolean, required

## Other responses

- `400` — Invalid parameters
- `401` — Unauthorized (authentication missing or invalid)
- `404` — API key not found
- `500` — Internal server error

---

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