Invalidate a user access token
DELETE/v1/users/:username/tokens/:token_id
Invalidate a user access token
Request
Path Parameters
token_id stringrequired
username anyrequired
target user's name
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful response
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
messagestringrequired
The error message
Example:
Bad Request
codestringrequired
The error code
Example:
BAD_REQUEST
issues
object[]
An array of issues that were responsible for the error
messagestringrequired
{
"code": "BAD_REQUEST",
"message": "Bad Request",
"issues": []
}
Invalid Credentials
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
messagestringrequired
The error message
Example:
Invalid Credentials
codestringrequired
The error code
Example:
UNAUTHORIZED
issues
object[]
An array of issues that were responsible for the error
messagestringrequired
{
"code": "UNAUTHORIZED",
"message": "Invalid Credentials",
"issues": []
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
messagestringrequired
The error message
Example:
Unauthorized
codestringrequired
The error code
Example:
FORBIDDEN
issues
object[]
An array of issues that were responsible for the error
messagestringrequired
{
"code": "FORBIDDEN",
"message": "Unauthorized",
"issues": []
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
messagestringrequired
The error message
Example:
Not Found
codestringrequired
The error code
Example:
NOT_FOUND
issues
object[]
An array of issues that were responsible for the error
messagestringrequired
{
"code": "NOT_FOUND",
"message": "Not Found",
"issues": []
}
Internal Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
messagestringrequired
The error message
Example:
Internal Error
codestringrequired
The error code
Example:
INTERNAL_SERVER_ERROR
issues
object[]
An array of issues that were responsible for the error
messagestringrequired
{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal Error",
"issues": []
}