Users
Create a user
POST
/api/usersCreates a user account with the supplied username, password, and role.
Headers
| Name | Type | Description |
|---|---|---|
| Authorizationrequired | string | Authentication credentials, e.g. Bearer <token>. |
Request body
| Name | Type | Description |
|---|---|---|
| id | string | Unique identifier of the resource. |
| passwordrequired | string | Password used to authenticate the account. |
| rolerequired | enum<string> | Permission role assigned to the user. Options: admin, user, view-only |
| usernamerequired | string | Username of the account. |
Example request
Responses
200The operation completed successfully.
| Name | Type | Description |
|---|---|---|
| idrequired | string | Unique identifier of the resource. |
| rolerequired | string | Permission role assigned to the user. |
| usernamerequired | string | Username of the account. |
200 example
400Bad request.
| Name | Type | Description |
|---|---|---|
| errorrequired | object | Error details returned when the operation fails. |
400 example
401Unauthorized.
| Name | Type | Description |
|---|---|---|
| errorrequired | object | Error details returned when the operation fails. |
401 example
Code samples
cURL