Category Filter
Associate policy
Associate policies to the target devices.
Argument | Type | Description |
---|---|---|
policies | Array | Required. IDs of the policy |
users | Array | Optional. IDs of the users |
usergroups | Array | Optional. IDs of the user groups |
devices | Array | Optional. IDs of the devices |
devicegroups | Array | Optional. IDs of the device groups |
curl
HTTP Request:
Shell Command:
1 2 3 4 5 6 7 8 9 10 11 12 |
POST https://<portal>.hexnodemdm.com/api/v1/actions/associate_policy/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- [{ "policies":[5], "users":[0], "usergroups":[4], "devices":[5,6], "devicegroups":[12], }] |
Shell Command:
1 |
curl -H "Authorization: <your API key>" -H "Content-Type: application/json" -d '{"policies":[15],"users":[0],"usergroups":[4],"devices":[5,6],"devicegroups":[12]}' https://<portal>.hexnodemdm.com/api/v1/actions/associate_policy/ |
HTTP Response:
1 |
HTTP/1.1 200 ok |