Category Filter
Broadcast Message
Broadcast a message to a device.
Argument | Type | Description |
---|---|---|
users | Array | IDs of the users |
usergroups | Array | IDs of the user groups |
devices | Array | IDs of the devices |
devicegroups | Array | 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/message/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- [{ "users":[0], "usergroups":[4], "devices":[5,6], "devicegroups":[12], "message":"sample message" }] |
Shell Command:
1 |
curl -H "Authorization: <your API key>" -H "Content-Type: application/json" -d '{"users":[2,3],"usergroups":[4],"devices":[5,6],"devicegroups":[12], "message":"sample message"}' https://<portal>.hexnodemdm.com/api/v1/actions/message/ |
HTTP Response:
1 |
HTTP/1.1 200 ok |