Category Filter
Create Device Group
Create a new static device group.
Arguments | Type | Description |
---|---|---|
groupname | String | Required. Name of the device group |
description | String | Required. Description for the group |
devices | Integer array | Optional. Array of enrolled device IDs |
curl
HTTP Request:
Shell Command:
1 2 3 4 5 6 7 8 9 10 |
POST https://<portal>.hexnodemdm.com/api/v1/devicegroups/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- [{ "groupname": "iOS devices", "description":"Group of iOS devices", "devices":[1,2,3], }] |
Shell Command:
1 |
curl -H "Authorization:<your API key>" -H "Content-Type: application/json" -d '{ "groupname": "Neil","description":"description", "devices":[1,2,3]}' https://<portal>.hexnodemdm.com/api/v1/devicegroups/ |
HTTP Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
HTTP/1.1 201 Created { "id":1, "groupname": "ios device group", "description":" ios devices group for apps", "devices":[ { "id": 1 "name": "neil's ipad", "user_id": 2, "user_name": "neil", "model_name": "iPad (3rd Gen)", "platform": "ios" }, ... ] } |