Overview
Description | Notify iOS device users on important details or tasks via the REST API. Example: Notify the sales employees of an urgent meeting to revisit the sales strategy. |
Resource Path | /notification |
URL | /ios/operation/notification |
HTTP Method | POST |
Request/Response Format | application/json |
Sample request
{ "operation": { "bundleId": "com.wso2.emm.agent" }, "deviceIDs": [ "2be702beaaf4ad34fc9e7f8da2b6b808c453fa72b", "2ec33430ad456713c633de75b2219376bac45de56" ] }
For information on the property definitions, see Resource Definition to Send Notifications to iOS Devices.
cURL command
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -d @'<JSON_PAYLOAD>' -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/ios/operation/notification
- For more information on how to generate the EMM API token, see Generating the EMM API Token.
- Define the path to the JSON file as the
<JSON_PAYLOAD>
value. - By default,
<EMM_HOST>
islocalhost.
However, if you are using a public IP, the respective IP address or domain needs to be specified. - By default,
<EMM_HTTPS_PORT>
has been set to 9443. However, if the port offset has been incremented byn
, the default port value needs to be incremented byn
.