ApiKeyEndpointModule
patch/api/v1/organizations/{organizationId}/api-keys/{apiKeyId}

Request

  • The document declares no server URL.
  • Auth: API key in cookie __Host-template.session

Path parameters

apiKeyIdstring uuid required
organizationIdstring uuid required

Headers

X-CSRF-TOKENstring required

Request token returned by GET /api/v1/auth/csrf.

Request body

namestring

Trimmed before use; the result must contain 1 to 32 Unicode scalars and no control characters.

presetIdsstring[]

Nonempty closed preset selection expanded server-side into canonical scopes; clients never submit raw scopes.

expiresIn'never' | '7d' | '30d' | '90d' | '365d'
enabledboolean
rateLimitEnabledboolean
rateLimitMaxinteger
rateLimitWindow'1m' | '1h' | '1d'

Closed fixed-window duration.

Response

OK

Changes