Users

Create new API Token for a specific user

Superadmin-only. Create a new API token for a user.

post/api/v1/users/{id}/api-tokens

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v1/users/{id}/api-tokens
  • Auth: one of:
    • HTTP bearer
    • HTTP basic

Path parameters

idstring required

The user id

Request body

namestring required
descriptionstring
maxAgestring
extendedboolean

Example request

{
  "maxAge": "maxAge",
  "name": "name",
  "description": "description",
  "extended": true
}

Response

API token successfully created

idstring
namestring
fullTokenstring

Example response

{
  "fullToken": "fullToken",
  "name": "name",
  "id": "id"
}

Changes

No recorded changes to this operation across all 7 revisions of this API.