GET /api/users/:user_id/personal_access_tokens
List all Personal Access Tokens for a user

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Integer

organization_id
optional

Scope by organizations

Validations:

  • Integer

user_id
required

ID of the user

Validations:

  • String

search
optional

filter results

Validations:

  • String

order
optional

sort results

Validations:

  • String

page
optional

paginate results

Validations:

  • String

per_page
optional

number of entries per request

Validations:

  • String


GET /api/users/:user_id/personal_access_tokens/:id
Show a Personal Access Token for a user

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Integer

organization_id
optional

Scope by organizations

Validations:

  • Integer

id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, ‘‘, ‘-’ with no leading or trailing space..

user_id
required

ID of the user

Validations:

  • String


POST /api/users/:user_id/personal_access_tokens
Create a Personal Access Token for a user

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Integer

organization_id
optional

Scope by organizations

Validations:

  • Integer

user_id
required

ID of the user

Validations:

  • String

personal_access_token
required

Validations:

  • Hash

personal_access_token[name]
required

Validations:

  • String

personal_access_token[expires_at]
optional , nil allowed

Expiry Date

Validations:

  • DateTime


DELETE /api/users/:user_id/personal_access_tokens/:id
Revoke a Personal Access Token for a user

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Integer

organization_id
optional

Scope by organizations

Validations:

  • Integer

id
required

Validations:

  • String

user_id
required

ID of the user

Validations:

  • String