Skip to main content

UpdateApiKeySettings

PATCH 

/v1/customers/:customer_id/projects/:project_id/api-keys/:api_key_id/settings

UpdateApiKeySettings changes the per-key settings of an API key the caller owns, for every key of its client. Only the fields that are set change. The new settings reach the data plane of every active key of the client.

An API_KEY-scoped rate-limit policy writes the same rate limit when it changes, and deletes it when it is deactivated or deleted. The last write wins.

A key that does not exist, or that belongs to another user, returns NOT_FOUND. A request that sets no field, or a rate limit out of range, returns INVALID_ARGUMENT.

Request​

Responses​

Success