Overview
Description | Set a web clip on Android devices. A web clip is used to add a bookmark to a web application. |
Resource Path | /webclip |
URL | /mdm-android-agent/operation/webclip |
HTTP Method | POST |
Request/Response Format | application/json |
Sample request
{ "operation":{ "title":"google", "identity":"https://google.lk", "type":"install" }, "deviceIDs":[ "d8:50:e6:2f:6a:8b", "a5:60:e6:2g:6a:5b" ] }
For information on the property value definitions, see Resource Definition to Set a Web Clip on Android 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>/mdm-android-agent/operation/webclip
- For more information on how to generate the EMM API token, see Generating the OAuth 2.0 Access Token.
- Define the path to the JSON file, which lists the devices that this operation is applied on and the web clip details, 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
.
For example:
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer Mkk2R0hVaFpGdUtnTlZhY3pZbWJjWmJ0Rlo0YTpQMEh1QmpscXc4dEJIZ2FNMUN5OEdGRmRzV29h" -d @'test.json' -k -v https://localhost:9443/mdm-android-agent/operation/webclip