Revoke a token of a user – Management API – MediaKind
Revoke a token of a user
del https://app.mk.io/api/v1/organization/tokens/:token_id
Revoke a token by its ID. The ID is the value of the decoded token's jti property. The token can belong to any user with access to this MK.IO organization.
RBAC Capability Required: core.token.revoke
Authentication
Authorization Bearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
| Parameter | Type | Required | Format |
|---|---|---|---|
| token_id | string | Required | uuid |
Response
204 OK
No response body.
Errors
400 Bad Request
error object ErrorDetail
Pertinent information about the error.
| Property | Type | Required |
|---|---|---|
| code | string | Required |
| detail | string | Required |
| extraDetail | map | Optional |
401 Unauthorized
error object ErrorDetail
Pertinent information about the error.
403 Forbidden
error object ErrorDetail
Pertinent information about the error.
404 Not Found
error object ErrorDetail
Pertinent information about the error.
429 Too Many Requests
error object ErrorDetail
Pertinent information about the error.
500 Internal Server Error
error object ErrorDetail
Pertinent information about the error.