Invalidate a user access token
DELETE/v1/users/:username/tokens/:token_id
Invalidates an access token for a service account or user account. Use the token ID, not the token secret.
note
Use the exact username for the user account or service account in the path /v1/users/:username/tokens/:token_id.
Use the token_id returned by the create token endpoint or the list tokens endpoint. Do not use the token secret as the path parameter.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful response
Bad Request
Invalid Credentials
Unauthorized
Not Found
Internal Error