Category Filter
Create User Group
Create a new user group.
Arguments | Type | Description |
---|---|---|
groupname | String | Required. Name of the user group |
description | String | Required. Description of the group |
users | Integer array | Optional. Array of ID’s of the enrolled users |
curl
HTTP Request:
Shell Command:
1 2 3 4 5 6 7 8 9 10 |
POST https://<portal>.hexnodemdm.com/api/v1/usergroups/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- [{ "groupname": "Android Users", "description":"Users using Android devices", "users":[1,2,3], }] |
Shell Command:
1 |
curl -H "Authorization:<your API key>" -H "Content-Type: application/json" -d '{ "groupname": "Android Users","description":"Users using Android devices","users":[1,2,3]}' https://<portal>.hexnodemdm.com/api/v1/usergroups/ |
HTTP Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
HTTP/1.1 201 Created { "id": 1, "groupname":"example", "description":"ios usergroup", "users":[ { "id": 1, "name":"neil", "email":"neil@hexnode.com", "domain": "local", "phoneno": "18664989407" }, ... ], } |