---
title: "Update API key"
method: PUT
path: "/api/api-keys/{id}"
tags: ["API Keys"]
---

# Update API key

`PUT /api/api-keys/{id}`

## Request

- Base URL: `https://api.zvid.io`
- URL: `https://api.zvid.io/api/api-keys/{id}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Rename an active API key belonging to the authenticated user

## Path parameters

- `id` integer, required

## Request body

- object
  - `name` string, required: New name for the API key

## Response `200`

API key updated successfully

- object
  - `success` boolean, required
  - `message` string, required

## Other responses

- `400`: Invalid ID, validation error, duplicate name, API key not found, or operation failed
- `401`: Unauthorized

---

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