Rotate an API key
Rotate an API key. Issues a new key that copies the name and project of the rotated key, and schedules the rotated key to expire after a grace period so in-flight callers can swap over. The new plaintext key is returned once. With expire_in_days set to 0, browser sessions attributed to the old key are ended asynchronously and unsaved profile changes are discarded. Grace-period and natural expiry do not end existing browsers. If cleanup cannot be registered, an immediate rotation is not committed. Service-account keys retain their service principal and policy; the rotating administrator is recorded separately for audit.
Authorizations
Body
Response
New API key created from the rotation
API key returned immediately after creation. Includes the plaintext key once.