POST /api/usergroups { "usergroup": { "name": "test_usergroup", "user_ids": [ 980190962, 298486374, 200482051 ] } } 201 { "admin": false, "created_at": "2021-05-18 16:04:01 UTC", "updated_at": "2021-05-18 16:04:01 UTC", "name": "test_usergroup", "id": 18, "external_usergroups": [], "usergroups": [], "users": [ { "id": 980190962, "login": "one", "description": null }, { "id": 298486374, "login": "two", "description": null }, { "id": 200482051, "login": "test", "description": null } ], "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, can be modified by admins only Validations:
|
usergroup[user_ids] optional , nil allowed |
Validations:
|
usergroup[usergroup_ids] optional , nil allowed |
Validations:
|
usergroup[role_ids] optional , nil allowed |
Validations:
|