Rename an API token of a user
post
Authorizations
defguard_sessionstringRequired
Path parameters
usernamestringRequired
Name of the user.
token_idinteger · int64Required
ID of the API token.
Body
namestringRequired
Responses
200
API token renamed.
No content
400
Invalid name.
application/json
401
Session is missing or invalid.
application/json
403
Requires admin privileges and an active enterprise license.
application/json
404
User or token not found.
application/json
500
Unable to rename API token.
application/json
post/api/v1/user/{username}/api_token/{token_id}/rename
No content
Last updated
Was this helpful?