Update an API key
Updates mutable fields of an API key: display name, status (active / disabled / revoked), permission mode and access map, project scope and constraints. Omitted fields keep their current values. Unknown body fields are rejected.
Autorizações
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Parâmetros de caminho
Unique identifier of the API key.
Corpo
Per-domain access level (none, read or write) for restricted keys.
Legacy toggle mirrored onto status: false disables, true re-enables.
Expiry and other limits; null clears them.
New display name.
100Permission preset; a restricted key must keep at least one granted domain.
all, restricted, read_only, PERMISSION_MODE_ALL, PERMISSION_MODE_RESTRICTED, PERMISSION_MODE_READ_ONLY Projects the key may reach.
Lifecycle status; revoked is terminal.
active, disabled, revoked Resposta
API key updated successfully.
Raw on create; the key prefix on retrieve and update; masked in list responses.

