Appearance
POST
/admin/user-group/user-groupsRequired scope:
viskan:usergroup:createCreates a new user group.
Request body
JSON
{
"groupName": "Customer service",
"active": true,
"roles": [
"country",
"customer:read",
"customer:update"
],
"reports": [
10000,
10001
],
"warehouses": [
{
"warehouseCompanyId": 0,
"warehouseId": 1
}
],
"returnReasonIds": [
1,
3
],
"storeIds": [
1
]
}
Response
The response contains the identifier of the new user.
JSON
{
"groupId": 1
}
| Error code | Description |
|---|---|
group-name-is-unavailable | The user group you are trying to use is already used by another user group. |