GET /api/users/:user_id/personal_access_tokens
列出用户的所有个人访问令牌

参数

参数名字 描述
location_id
选填

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
选填

Set the current organization context for the request

Validations:

  • Must be a Integer

user_id
必填

用户 ID

Validations:

  • Must be a String

search
选填

过滤结果

Validations:

  • Must be a String

order
选填

排序项和顺序,例如 ‘id DESC’

Validations:

  • Must be a String

page
选填

页号,从 1 开始

Validations:

  • Must be a number.

per_page
选填

每页中显示的返回结果数

Validations:

  • Must be a number.

搜索字段

字段名 类型 可能的值
name
user_id

GET /api/users/:user_id/personal_access_tokens/:id
显示用户的个人访问令牌

参数

参数名字 描述
location_id
选填

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
选填

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必填

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
必填

用户 ID

Validations:

  • Must be a String


POST /api/users/:user_id/personal_access_tokens
为用户创建个人访问令牌

参数

参数名字 描述
location_id
选填

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
选填

Set the current organization context for the request

Validations:

  • Must be a Integer

user_id
必填

用户 ID

Validations:

  • Must be a String

personal_access_token
必填

Validations:

  • Must be a Hash

personal_access_token[name]
必填

Validations:

  • Must be a String

personal_access_token[expires_at]
选填 , 允许空值

失效日期

Validations:

  • Must be a DateTime


DELETE /api/users/:user_id/personal_access_tokens/:id
撤销用户的个人访问令牌

参数

参数名字 描述
location_id
选填

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
选填

Set the current organization context for the request

Validations:

  • Must be a Integer

id
必填

Validations:

  • Must be a String

user_id
必填

用户 ID

Validations:

  • Must be a String