DELETE
/api/users/{userId}/tokens/{tokenId}Delete a user's token
Deletes a personal access token associated with a user. Supply the user and token identifiers to select the token to remove. The response indicates the deletion status.
userIdstringrequired
The unique identifier of the user who owns the token.
tokenIdstringrequired
The unique identifier of the token to delete.
200Returns a deletion status response.
400Returned when the request is invalid.
401Returned when the request lacks valid authentication.
403Returned when access to the requested operation is forbidden.
500Returned when the server encounters an internal error.
Error handling
A 400 is returned when the request is invalid; a 401 when authentication is missing or invalid; a 403 when access is forbidden; and a 500 when the server encounters an internal error. The userId path parameter identifies the user, and the tokenId path parameter identifies the token to delete.