Deactivate Personal Access Token

PUT /auth/pats/{tokenId}/deactivate

Deactivate a specific personal access token

Required Permissions

Name
Conditions

Auth:Users:Update

Always Required

Auth:Types:Pat

Always Required

Parameters

tokenId *

the ID of the personal access token to deactivate

Example

/auth/pats/to-em7bu-m6c48-hdqoobj7dj24pko/deactivate

Responses

Success - The personal access token that was updated

{
  "dateCreated": "2023-04-12T03:38:05.595Z",
  "credId": "",
  "isActive": false,
  "kind": "CustomerEmployee",
  "linkedUserId": "us-24vwa-92s33-8tvqi1dg0a95megt",
  "linkedAppId": "",
  "name": "My new personal access token name",
  "orgId": "or-yanke-mars-6ulofamogg8fs87v",
  "permissionAssignments": [
    {
      "permissionId": "pm-lit-yanke-46bfekf1548aeph4",
      "permissionName": "WalletAdmin",
      "assignmentId": "",
      "operations": [
        "Auth:Action:Sign",
        "Auth:Apps:Read",
        "Auth:Types:Application",
        "Auth:Types:Employee",
        "Auth:Types:EndUser",
        "Auth:Types:Pat",
        "Auth:Types:ServiceAccount",
        "Auth:Users:Read",
        "Balances:Read",
        "Payments:Create",
        "Payments:Read",
        "PublicKeyAddresses:Read",
        "PublicKeys:Create",
        "PublicKeys:Read",
        "Signatures:Create",
        "Signatures:Read",
        "Transactions:Create",
        "Transactions:Read",
        "Wallets:Create",
        "Wallets:Read",
        "Wallets:Update"
      ]
    }
  ],
  "publicKey": "",
  "tokenId": "to-5kwgq-oegi0-879o3v4uh9ghhq72"
}

Last updated