You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
973 B
YAML
33 lines
973 B
YAML
post:
|
|
tags:
|
|
- admin
|
|
summary: create token
|
|
description: This operation creates a new API token for access to the Read and Write APIs.
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
uid:
|
|
type: number
|
|
description: The generated token will make calls against NodeBB as this user.
|
|
example: 1
|
|
description:
|
|
type: string
|
|
description: Optional descriptor to differentiate tokens.
|
|
example: 'My new token.'
|
|
responses:
|
|
'200':
|
|
description: token successfully created
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
status:
|
|
$ref: ../../components/schemas/Status.yaml#/Status
|
|
response:
|
|
$ref: ../../components/schemas/admin/tokenObject.yaml#/TokenObject
|