---
title: "Update or revoke an API key"
method: PATCH
path: "/api/org-api-keys"
tags: ["API Keys"]
---

# Update or revoke an API key

`PATCH /api/org-api-keys`

## Request

- Base URL: `https://app.dailyplay.ai`
- URL: `https://app.dailyplay.ai/api/org-api-keys`
- Auth: HTTP bearer

Update API key properties. Set `is_active` to false to revoke, or true to reactivate.

## Request body

- object
  - `id` integer, required: API key ID
  - `org_id` integer, required: Organization ID
  - `is_active` boolean: Set false to revoke, true to reactivate

## Response `200`

API key updated

- SuccessResponse
  - `success` boolean

## Other responses

- `401`: Invalid or revoked API key / missing auth

---

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