Bundles

Add Bundle Resource

POST /api/bundles/{bundle_id}/resources

Parameters

propertytypedescriptionexample
bundle_ididid2a9e45b4-2c30-4cbd-8812-fcc82c1f3ea1

Payload

propertytypedescriptionexample
excludebooleanDo not include in selection of files for OTAtrue
filenamestringwifi_fw.bin
base64base64base64 encoded binary payloadR0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=
typestringfile typeWIFI_FW
versionversion0.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

propertytypedescriptionexample
bundle_ididid1a9e45b4-2c30-4cbd-8812-fcc82c1f3ea1
resource_ididid1a9e45b4-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