---
title: "PUT /organization/api-keys/{api_key_id}"
method: PUT
path: "/organization/api-keys/{api_key_id}"
tags: ["Organization API Keys"]
---

# PUT /organization/api-keys/{api_key_id}

`PUT /organization/api-keys/{api_key_id}`

## Path parameters

- `api_key_id` string, required

## Request body

- PortalUpdateApiKeyRequest
  - `active` boolean, nullable — Whether the API key is active
  - `expires_at` integer, nullable — Expiration timestamp (optional)
  - `name` string, nullable — Name/description for the API key

## Response `200`

API key updated successfully

- ApiKey
  - `active` boolean, required — Whether the API key is active
  - `api_key` string, required — Unique API key identifier
  - `created_at` integer, required — Timestamp when the API key was created
  - `expires_at` integer, nullable — Expiration timestamp (optional)
  - `last_used_at` integer, nullable — Timestamp when the API key was last used
  - `name` string, nullable — Name/description for the API key
  - `organization_id` string, required — Organization identifier
  - `scopes` string[], required — Permissions or scopes for the API key

## Other responses

- `403` — Access denied - API key belongs to different organization
- `404` — API key not found
- `500` — Internal server error

---

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