POST
/api-keys/updateRename an API key
Renames an existing API key. Supply the key's apiKeyId and the new name in the request body. The response contains the updated API key.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
The API key identifier and its new display name.
apiKeyIdstringrequired
ID of the API key to rename.
namestringrequired
New display name.
200Returns the updated API key.
dataobjectoptional
statusintegeroptional
successbooleanoptional
403Returned when the authenticated user is forbidden from renaming the API key.
errorstringoptional
Reason phrase, for example `Bad Request`.
messagestringoptional
statusCodeintegeroptional
Error handling
Both apiKeyId and name are required. A 403 is returned when the authenticated user is forbidden from renaming the API key.