Category Filter
Update User Group
Update a user group.
Arguments | Type | Description |
---|---|---|
groupname | String | Required. New name for the user group |
description | String | Required. Description for the group |
users | Integer array | Optional. Updated list of the users |
curl
HTTP Request:
Shell Command:
1 2 3 4 5 6 7 8 9 10 |
PUT https://<portal>.hexnodemdm.com/api/v1/usergroups/{USERGROUP_ID}/ 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": "ios","description":"ios usergroup", "users":[2,3]}' https://<portal>.hexnodemdm.com/api/v1/usergroups/{USERGROUP_ID}/ -X PUT |
HTTP Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
{ "id": 5, "groupname":"ios" , "description":"ios usergroup", "users":[ { "id": 2, "name":"bran", "email":"bran@hexnode.com", "domain": "local", "phoneno": "18664989407" }, ... ] } |