Create a new personal access token (PAT) for the current user.
POST/api/admin/user/tokens
Creates a new personal access token (PAT) belonging to the current user.
Request
Responses
- 201
- 401
- 403
- 404
The resource was successfully created.
Response Headers
location string
The location of the newly created resource.
Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.
The provided user credentials are valid, but the user does not have the necessary permissions to perform this operation
The requested resource was not found.