Rotate a service account API key
DESTRUCTIVE: atomically revokes the existing key and issues a replacement that inherits its name, returning the new one-time key value (shown only once). The previous key stops authenticating the instant this call succeeds, so any client still using it will immediately start failing with 401. Update every consumer with the new value before rotating, or set gracePeriodMinutes to keep the old key valid for a short overlap window.
承認
Factory API key or JWT token for authentication
パスパラメータ
Service account ID
1API key ID
1ボディ
x > 0How long (0-10 minutes) the rotated-from key stays valid after rotation. Omit or 0 revokes it immediately. Rejected with a 400 if the key would expire before the grace window ends (the grace period never extends a key lifetime).
0 <= x <= 10レスポンス
Response for status 200
