POST /api/usergroups { "usergroup": { "name": "test_usergroup", "usergroup_ids": [ 1 ] } } 201 { "admin": false, "created_at": "2018-11-15 19:02:51 UTC", "updated_at": "2018-11-15 19:02:51 UTC", "name": "test_usergroup", "id": 2, "external_usergroups": [], "usergroups": [ { "name": "usergroup10", "id": 1, "created_at": "2018-11-15 19:02:51 UTC", "updated_at": "2018-11-15 19:02:51 UTC" } ], "users": [], "roles": [] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations 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:
|