GET /api/users/:user_id/personal_access_tokens
Mostrar todos los tokens de acceso personal para un usuario

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

user_id
requerido

ID del usuario

Validations:

  • Must be a String

search
opcional

filtrar resultados

Validations:

  • Must be a String

order
opcional

Orden y campo de clasificación, p. ej., 'id DESC'

Validations:

  • Must be a String

page
opcional

Número de página, comenzando por 1

Validations:

  • Must be a number.

per_page
opcional

Número de resultados por página para devolver

Validations:

  • Must be a number.

Campos de búsqueda

Nombre del campo Tipo Valores posibles
name
user_id

GET /api/users/:user_id/personal_access_tokens/:id
Mostrar un token de acceso personal para un usuario

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

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
requerido

ID del usuario

Validations:

  • Must be a String


POST /api/users/:user_id/personal_access_tokens
Crear un token de acceso personal para un usuario

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

user_id
requerido

ID del usuario

Validations:

  • Must be a String

personal_access_token
requerido

Validations:

  • Must be a Hash

personal_access_token[name]
requerido

Validations:

  • Must be a String

personal_access_token[expires_at]
opcional , nil permitido

Fecha de vencimiento

Validations:

  • Must be a DateTime


DELETE /api/users/:user_id/personal_access_tokens/:id
Revocar un token de acceso personal para un usuario

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

Validations:

  • Must be a String

user_id
requerido

ID del usuario

Validations:

  • Must be a String