---
title: "Update Api Key"
method: POST
path: "/admin/update-api-key"
tags: ["Admin"]
---

# Update Api Key

`POST /admin/update-api-key`

Updates the name and/or permission of the specified API key.

## Request body

- UpdateAPIKeyRequest
  - `organization_id` string, uuid, required — The organization ID of the related api key.
  - `api_key_id` string, uuid, required — The API key ID to update.
  - `name` string, nullable — New name for the API key.
  - `permission` 'all' | 'read_only'

## Response `200`

Successful Response

- DefaultResponse
  - `message` string — This string will always be "Success!". This may change in the future.

## Other responses

- `404` — Not Found
- `422` — Validation Error

## Changes

- **2026-01-21** `b5badb138367` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/zeroentropy-ai/apis/zeroentropy-api/changes/admin/update-api-key/post.md)

---

[API](https://skmtc.dev/zeroentropy-ai/apis/zeroentropy-api.md) · [All operations](https://skmtc.dev/zeroentropy-ai/apis/zeroentropy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zeroentropy-ai/zeroentropy-api/revisions/5ff1b24060b9/schema)
