Examples

DELETE /api/users/988725682/personal_access_tokens/2
{
  "personal_access_token": {}
}
200
{
  "id": 2,
  "revoked": true,
  "token": "$2a$05$da4b9237bacccdf19c076uP.zXXGisdweoj.B9LhaHca2VWwv.n02",
  "name": "Personal Access Token 2",
  "expires_at": "2019-09-21T14:33:21.603Z",
  "last_used_at": null,
  "user_id": 988725682,
  "created_at": "2019-09-11T14:33:21.604Z",
  "updated_at": "2019-09-11T14:33:21.617Z"
}

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be a String

user_id
required

ID of the user

Validations:

  • Must be a String