Hi,
I created a product (although I didn’t need it), to be able to release my firmware when my device wakes up from deep sleep.
I’m building my application locally and deploy with the particle cli.
It looks like the only way to upload a firmware for a product is using the product console at https://console.particle.io/your_product/firmware/upload
but this breaks my workflow.
There is no particle cli command and no documented Cloud API.
Inspecting the upload page I found that I can upload a firmware with
curl "https://api.particle.io/v1/products/$PRODUCT/firmware" \
-H "Authorization: Bearer $TOKEN" \
-F version=$VERSION -F current=false -F title="$TITLE" -F binary=@"$BINARY"
I can get the list of firmware uploaded with:
curl "https://api.particle.io/v1/products/$PRODUCT/firmware" \
-H "Authorization: Bearer $TOKEN"
and a single firmware uploaded with:
curl "https://api.particle.io/v1/products/$PRODUCT/firmware/$VERSION" \
-H "Authorization: Bearer $TOKEN"
I couldn’t find a way to delete a firmware: calling the last URL above with -X DELETE I get a 404.
I was wondering if there was a cli command for this and a way to delete an uploaded firmware, even via API.
Thanks
Roberto