Category Filter
Add To User Group
Add the user to a user group.
Argument | Type | Description |
---|---|---|
users | Array | Required. IDs of the users. |
usergroups | Array | Required. IDs of the user groups. |
curl
HTTP Request:
Shell Command:
1 2 3 4 5 6 7 8 9 |
POST https://<portal>.hexnodemdm.com/api/v1/actions/add_to_user_group/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- [{ "users":[1], "usergroups":[4], }] |
Shell Command:
1 |
curl -H "Authorization: <your API key>" -H "Content-Type: application/json" -d '{"users":[0],"usergroups":[4]}' https://<portal>.hexnodemdm.com/api/v1/actions/add_to_user_group/ |
HTTP Response:
1 |
HTTP/1.1 200 ok |