Skip to main content

UpdateApiKey

PATCH 

/v1/api-keys/:key_id

UpdateApiKey updates mutable fields of an API key (name and/or active state).

When the request names customer_id (and optionally project_id), that tenant is the authorization target: api_keys.edit on it authorizes the call, and a key outside it returns NOT_FOUND. A caller whose admin scope comes only from the Admin Console's organization lift also needs api_keys.edit on the key's own customer or project, or the call returns NOT_FOUND. The change and its UPDATE_API_KEY audit record commit together.

Request​

Responses​

Success