Add a user
POST//v1/users
Authorization: Authorization
name: Authorizationtype: apiKeydescription: JWT Tokenin: header
Add a user
Request
- application/json
Body
required
The user data
password stringrequired
permissions string[]required
username stringrequired
Responses
- 201
- 400
- 401
User successfully added
Invalid request
Unauthorized (Wrong permissions, missing token)
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
missingPermission stringrequired
{
"error": "string",
"missingPermission": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST '/v1/users' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"password": "password",
"permissions": [
"permissions",
"permissions"
],
"username": "username"
}'
ResponseClear