Skip to main content
PATCH
Disable or enable an API key

Authorizations

Authorization
string
header
required

An access token from Barndoor's identity provider, sent as Authorization: Bearer <token>. Use a service-account token from the OAuth 2.0 client-credentials grant for scripts and CI, or a signed-in user's token. The caller needs the admin role in the organization. Gateway API keys (bd-...) are not accepted here.

Path Parameters

id
string<uuid>
required

Record ID (UUID)

Body

application/json
disabled
boolean
required

Response

OK

The disabled state now in effect.

disabled
boolean
required

Whether the key is now disabled.