Rotate
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
string · uuidOptional
Body
Request model for API key rotation.
retain_period_minutesintegerOptionalDefault:
0Responses
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:
falsenamestring · max: 255Required
401
Unauthorized
application/json
409
Conflict
application/json
422
Unprocessable Entity
application/json
put
/api/v1/service_accounts/{service_account_id}/api_keys/{api_key_name_or_id}/rotateLast updated
Was this helpful?