Skip to main content
PATCH
Update a API key

Authorizations

Authorization
string
header
required

A Barndoor API key, sent as Authorization: Bearer <key>. Keys are prefixed bdai_ and are opaque — do not attempt to decode one. Interchangeable with an OAuth 2.0 access token.

Scopes

openid

Issue an OIDC ID token identifying the caller.

profile

Read the caller's basic profile claims.

email

Read the caller's email address.

Path Parameters

id
string<uuid>
required

Identifier, a UUID

Body

application/json
disabled
boolean
required

Response

The requested record

PATCH /admin/api-keys/{id} — echoes the disabled state now in effect.

disabled
boolean
required

The key's disabled flag after the update, echoing the request.