Description | Use this REST API to update the details of an Android device. | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Resource Path | /{id}
| |||||||||||||||||||||||||||
URL |
| |||||||||||||||||||||||||||
HTTP Method | PUT | |||||||||||||||||||||||||||
Request/Response Format | application/json | |||||||||||||||||||||||||||
cURL command | curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -k -d @'<JSON_PAYLOAD>' -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-android-agent/device/{id}
Example: Update the details of the Android device where the device identifier is 867115026844138. curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer cce3d4671a67c09852e445c67e47c09a" -k -d @'update_device_info.json' -v https://localhost:9443/mdm-android-agent/device/867115026844138 | |||||||||||||||||||||||||||
Sample output | > PUT /mdm-android-agent/device/867115026844138 HTTP/1.1 > User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8| zlib/1.2.5 > Host: localhost:9443 > Accept: */* > Content-Type: application/json > Authorization: Bearer adc3b342f5929fb3158161bff205f1b1 > Content-Length: 1472 > Expect: 100-continue > < HTTP/1.1 100 Continue < HTTP/1.1 200 OK < Date: Thu, 24 Mar 2016 12:23:57 GMT < Content-Type: application/json < Content-Length: 67 < Server: WSO2 Carbon Server < {"responseMessage":"The device information has been modified successfully"} | |||||||||||||||||||||||||||
Sample JSON definition | { "description":"hwRIO-L01", "deviceIdentifier":"867115026844132", "enrolmentInfo":{ "ownership":"BYOD", "status":"ACTIVE", "owner":"admin", "dateOfEnrolment":"1445438864650" }, "name":"hwRIO-L01", "properties":[ { "name":"IMEI", "value":"867115026844132" }, { "name":"IMSI", "value":"413027001101134" }, { "name":"DEVICE_MODEL", "value":"HUAWEI RIO-L01" }, { "name":"VENDOR", "value":"HUAWEI" }, { "name":"OS_VERSION", "value":"5.1" }, { "name":"DEVICE_NAME", "value":"hwRIO-L01" }, { "name":"BATTERY_LEVEL", "value":"40" }, { "name":"LATITUDE", "value":"6.9302368" }, { "name":"LONGITUDE", "value":"79.8617277" }, { "name":"INTERNAL_TOTAL_MEMORY", "value":"24.74" }, { "name":"INTERNAL_AVAILABLE_MEMORY", "value":"18.4" }, { "name":"EXTERNAL_TOTAL_MEMORY", "value":"0.0" }, { "name":"EXTERNAL_AVAILABLE_MEMORY", "value":"0.0" }, { "name":"OPERATOR", "value":"Dialog" }, { "name":"DEVICE_INFO", "value":"[{\"name\":\"IMEI\",\"value\":\"867115026844132\"},{\"name\":\"IMSI\",\"value\":\"413027001101134\"},{\"name\":\"DEVICE_MODEL\",\"value\":\"HUAWEI RIO-L01\"},{\"name\":\"VENDOR\",\"value\":\"HUAWEI\"},{\"name\":\"OS_VERSION\",\"value\":\"5.1\"},{\"name\":\"DEVICE_NAME\",\"value\":\"hwRIO-L01\"},{\"name\":\"BATTERY_LEVEL\",\"value\":\"77\"},{\"name\":\"LATITUDE\",\"value\":\"6.9302368\"},{\"name\":\"LONGITUDE\",\"value\":\"79.8617277\"},{\"name\":\"INTERNAL_TOTAL_MEMORY\",\"value\":\"24.74\"},{\"name\":\"INTERNAL_AVAILABLE_MEMORY\",\"value\":\"18.4\"},{\"name\":\"EXTERNAL_TOTAL_MEMORY\",\"value\":\"0.0\"},{\"name\":\"EXTERNAL_AVAILABLE_MEMORY\",\"value\":\"0.0\"},{\"name\":\"OPERATOR\",\"value\":\"Dialog\"}]" } ] }
|
Unknown macro: {next_previous_link3}
Manage space
Manage content
Integrations