ZITADEL Docs
APIsCore ResourcesV1Organization Objects

RemovePersonalAccessToken

Remove a Personal-Access-Token (PAT) by ID

Deprecated: use user service v2 RemovePersonalAccessToken instead.

Delete a PAT from a user. Afterward, the user will not be able to authenticate with that token anymore.

DELETE
/users/{user_id}/pats/{token_id}

Path Parameters

user_id*string
token_id*string

Response Body

application/json

application/json

curl -X DELETE "https://loading/users/string/pats/string"
{
  "details": {
    "sequence": 0,
    "creationDate": "1s",
    "changeDate": "1s",
    "resourceOwner": "string"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?