User management
Add user
Add a new user
post/usermanagement
Request body
Example request
{
"username": "johndoe",
"password": "passwdWillBeStoredHashed",
"permissions": [
"admin"
],
"name": "John Doe",
"email": "john.doe@example.com",
"otherInfo": {
"phone": "+1234"
}
}Response
Updated
Example response
{
"data": {
"addedUser": {
"username": "johndoe",
"password": "secret_password",
"permissions": [
"inventory"
],
"name": "John Doe",
"email": "john.doe@example.com",
"otherInfo": {
"phone": "+1234"
}
}
}
}