---
title: "Update API Key"
method: PATCH
path: "/v1/api-keys/{id}"
tags: ["BackendService"]
---

# Update API Key

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

Update an API Key.

## Path parameters

- `id` string, required

## Request body

- UpdateAPIKeyRequest
  - `id` string
  - `apiKey` APIKey
    - `id` string — The API Key ID. Starts with `api_key_...`.
    - `organizationId` string — The Organization this API Key belongs to.
    - `createTime` string, date-time — When the API Key was created.
    - `updateTime` string, date-time — When the API Key was last updated.
    - `expireTime` string, date-time — The expire time of the API Key.
    - `displayName` string — A human-readable display name for this API Key.
    - `secretToken` string — The secret token for this API Key.
    - `secretTokenSuffix` string — The secret token suffix for this API Key.
    - `revoked` boolean — Whether this API Key is revoked.

## Response `200`

OK

- UpdateAPIKeyResponse
  - `apiKey` APIKey
    - `id` string — The API Key ID. Starts with `api_key_...`.
    - `organizationId` string — The Organization this API Key belongs to.
    - `createTime` string, date-time — When the API Key was created.
    - `updateTime` string, date-time — When the API Key was last updated.
    - `expireTime` string, date-time — The expire time of the API Key.
    - `displayName` string — A human-readable display name for this API Key.
    - `secretToken` string — The secret token for this API Key.
    - `secretTokenSuffix` string — The secret token suffix for this API Key.
    - `revoked` boolean — Whether this API Key is revoked.

## Other responses

- `400` — API Error
- `401` — API Error
- `403` — API Error
- `404` — API Error

---

[API](https://skmtc.net/tesseral-labs/apis/backendservice-api.md) · [All operations](https://skmtc.net/tesseral-labs/apis/backendservice-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tesseral-labs/backendservice-api/versions/fe83f78ae20a/schema)
