Bundles
Add Bundle Resource
POST /api/bundles/{bundle_id}/resources
Parameters
propertytype | descriptionexample | bundle_idid | id2a9e45b4-2c30-4cbd-8812-fcc82c1f3ea1 |
Payload
propertytype | descriptionexample | excludeboolean | Do not include in selection of files for OTAtrue |
filenamestring | wifi_fw.bin |
base64base64 | base64 encoded binary payloadR0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs= |
typestring | file typeWIFI_FW |
versionversion | 0.0.0.1 |
Curl Example
curl -v -X POST -H 'Authorization: Bearer <user-token>' -H "Content-type: application/json" -d '{"exclude":"true","filename":"wifi_fw.bin","base64":"R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=","type":"WIFI_FW","version":"0.0.0.1"}' http://localhost:2002/api/bundles/{bundle_id}/resources
Get Bundle Resource Binary
GET /api/bundles/{bundle_id}/resources/{resource_id}/binary
Parameters
propertytype | descriptionexample | bundle_idid | id1a9e45b4-2c30-4cbd-8812-fcc82c1f3ea1 |
resource_idid | id1a9e45b4-2c30-4cbd-8812-fcc82c1f3ea1 |
Curl Example
curl -v -X GET -H 'Authorization: Bearer <user-token>' http://localhost:2002/api/bundles/{bundle_id}/resources/{resource_id}/binary