Hello,
Currently, RMS API only supports changing the RMS configuration, and Device Configuration (Beta) feature is not yet implemented into the API.
/devices/{id}/command is used for sending the commands to be executed on the device shell. So this could be used to set the various settings until Device Configuration is implemented into the API. The status of the command execution can then be monitored using the Status API.
To update a device firmware using the RMS API, indeed, a firmware file needs to be uploaded, then it's ID can be found using /file. Then, this ID can be used to send this POST /devices/updates/set request:
{
"data": [
{
"action": "update_firmware",
"file_id": <ID_from_/file>,
"id": <device_ID>,
"offline": false,
"keep_settings": true
}
]
}
This will return a message like this:
{
"success": true,
"meta": {
"channel": "private-status.yyyyyy.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
Then, using the Status API mentioned earlier, the update status can be monitored.
For testing purposes, I'd recommend using an application like Postman, and downloading the OpenAPI YAML reference file.
Let me know if any more information is needed!
Best regards,
DaumantasG