Create a user
POST/users
Creates a user.
Request
- application/json
Body
required
email string
The email of the user. If provided, a Nabla account will be created and the user will be able to self-login using it.
roles role[]
Possible values: [ADMINISTRATOR
, PRACTITIONER
]
Responses
- 200
User.
- application/json
- Schema
- Example (from schema)
Schema
id uuidrequired
A unique identifier.
email emailnullablerequired
The email of the user.
roles role[]required
Possible values: [ADMINISTRATOR
, PRACTITIONER
]
{
"id": "98FCE1EF-DBCA-41EF-8BC7-4D1621AC07C6",
"email": "user@example.com",
"roles": [
"ADMINISTRATOR"
]
}
Loading...