POST /api/usergroups { "usergroup": { "name": "test_usergroup", "usergroup_ids": [ 5 ] } } 201 { "admin": false, "created_at": "2019-11-07 08:35:24 UTC", "updated_at": "2019-11-07 08:35:24 UTC", "name": "test_usergroup", "id": 6, "external_usergroups": [], "usergroups": [ { "name": "usergroup15", "id": 5, "created_at": "2019-11-07 08:35:24 UTC", "updated_at": "2019-11-07 08:35:24 UTC" } ], "users": [], "roles": [] }
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
usergroup required |
Validations:
|
usergroup[name] required |
Validations:
|
usergroup[admin] optional , nil allowed |
is an admin user group Validations:
|
usergroup[user_ids] optional , nil allowed |
Validations:
|
usergroup[usergroup_ids] optional , nil allowed |
Validations:
|
usergroup[role_ids] optional , nil allowed |
Validations:
|