Add OS
Update/Restore the latest firmare by a given id
Syntax: see Call Structure
Type = 'POST'
\'http://localhost:43430/api/v1/devices/id/os/manage?command=operation' \ |
Parameter | Description |
---|---|
id | This is a unique identifier returned from Get Devices |
operation | One of the available operations below |
operation | Description |
---|---|
update | Update OS to the current version |
restore | Erase your device then restore OS |
Note:
You can restore anytime, but you can only update if there is something to which you can update.
Returns:
{ "result": { "id": "id", "code": 0, "message": "os-update-message" } } |
Parameter | Description |
---|---|
id | This is a unique identifier returned from Get Devices |
os-update-message | Information on the os update/ restore (see below) |
message | Description |
---|---|
progress | The download progress as a percentage |
update successful | Confirm the update/ restore is successful |
Example
curl -X 'POST' \
'http://localhost:43430/api/v1/devices/000008120-000E28E91A22201E/os/manage?command=update' \
-H 'accept: application/json' \
-d ''
Returns
{
"id": "00008120-000E28E91A22201E",
"code": 0,
"message": "Success"
}
Errors
If there is an error in the API method then a will be returned