Update an API key
Authentication
A management key (prefixed mgmt_), created on the dashboard’s API keys page under Management keys. Distinct from a regular gateway API key, and never used to call models.
Path parameters
The key’s hash from a create or list response.
Request
Set true to disable the key, false to re-enable it.
Replace the key’s model allowlist; send null to remove the restriction or an empty list to block every model.
Routing policy to bind to the key; send null to unbind so the key falls back to its project or organization default.
Response
Stable identifier for the key. A one-way hash, not the secret, so it is safe to store and log. Use it in get, update, and delete calls.
Display label (the key’s public prefix, e.g. mg_8Kx2pQ). Not the secret.
User-set name for the key.
Project the key is scoped to, or null for an organization-wide key.
Models the key may call; null means unrestricted and an empty list blocks every model.