Rotate

Rotate Api Key

put

Rotate an API key.

Args: service_account_id: ID of the service account to which the API key belongs. api_key_name_or_id: Name or ID of the API key to rotate. rotate_request: API key rotation request.

Returns: The updated API key.

Raises: IllegalOperationError: If the service account was created via external authentication.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
service_account_idstring · uuidRequired
api_key_name_or_idany ofRequired
stringOptional
or
string · uuidOptional
Body

Request model for API key rotation.

retain_period_minutesintegerOptionalDefault: 0
Responses
chevron-right
200

Successful Response

application/json

Response model for API keys.

bodyany ofOptional
or
nullOptional
metadataany ofOptional
or
nullOptional
resourcesany ofOptional
or
nullOptional
idstring · uuidRequired
permission_deniedbooleanOptionalDefault: false
namestring · max: 255Required
put
/api/v1/service_accounts/{service_account_id}/api_keys/{api_key_name_or_id}/rotate

Last updated

Was this helpful?