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

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

user_id
richiesto

ID of the user

Validations:

  • Must be a String

search
opzionale

filtra i risultati

Validations:

  • Must be a String

order
opzionale

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
opzionale

Numero pagina, iniziando da 1

Validations:

  • Must be a number.

per_page
opzionale

Numero di risultati per pagina da ritornare

Validations:

  • Must be a number.

Search fields

Field name Tipo Possible values
name
user_id

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

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

id
richiesto

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

user_id
richiesto

ID of the user

Validations:

  • Must be a String


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

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

user_id
richiesto

ID of the user

Validations:

  • Must be a String

personal_access_token
richiesto

Validations:

  • Must be a Hash

personal_access_token[name]
richiesto

Validations:

  • Must be a String

personal_access_token[expires_at]
opzionale , consentito nil

Expiry Date

Validations:

  • Must be a DateTime


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

Parametri

Nome parametro Descrizione
location_id
opzionale

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opzionale

Set the current organization context for the request

Validations:

  • Must be a Integer

id
richiesto

Validations:

  • Must be a String

user_id
richiesto

ID of the user

Validations:

  • Must be a String