UserService

POST /api/users/{user}/personalAccessTokens

Changed on

CreatePersonalAccessToken creates a personal access token for a user. Only the user may call it. The token value is returned only once, in the response.

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

userstring required

The user id.

Request body

parentstring required

Required. The user who owns the token. Must be the caller. Format: users/{user}

descriptionstring

Optional. The description of the token.

expiresInDaysinteger

Optional. The lifetime of the token in days. 0 means the token never expires.

Response

OK

tokenstring

The token value. This is the only time it is returned.

Changes