Guard

Tighten another key's policy (lower caps/limits, drop scopes). Requires control:manage. Loosening needs an owner in the console. Every external action needs a person's approval; autonomous_external_actions is deprecated, accepted only as false and always reported as false.

patch/v1/keys/{id}

Request

  • Base URL: https://api.layrcake.dev
  • URL: https://api.layrcake.dev/v1/keys/{id}
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Headers

Idempotency-Keystring required

Request body

namestring
scopesstring[]
monthly_spend_capstring nullable
autonomous_external_actionsfalse
premium_offers'ask' | 'never'
premium_max_credits_per_callstring
data_route'balanced' | 'cheapest' | 'broadest' | 'fastest' nullable

Response

The key's policy after the change

Changes

No recorded changes to this operation across all 1 revision of this API.