201Successful Response
Schema: SuccessEnvelope_APITokenRevokeResponse_
successbooleanmessagestringcodestringdataAPITokenRevokeResponse
/api/v1/tokens/{token_id}/revokeRevoke an API token.
Path Parameters:
token_id: UUID of the token to revokeRequest Body: (optional)
reason: Optional reason for revocationNote: Once revoked, the token can no longer be used for authentication. The token is added to a blacklist and will be rejected on all future requests.
Revoked tokens cannot be un-revoked.
Returns: Revoked token information with revocation timestamp.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
token_idstringrequiredSchema: SuccessEnvelope_APITokenRevokeResponse_
successbooleanmessagestringcodestringdataAPITokenRevokeResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject