Upload a Firmware for a Product
Send the file as the firmware field of a multipart/form-data body.
Accepts an fwup archive (.fw), an ESP-IDF application image (.bin), an
AtomVM packbeam (.avm) or a RAUC verity bundle (.raucb). The format is
determined from the file itself, not its name or extension.
A product accepts only the formats listed in its allowed_update_tools,
which is ["fwup"] by default. ESP-IDF, AtomVM and RAUC each also have to
be enabled for the platform, with ESP_IDF_FIRMWARE_ENABLED,
ATOMVM_FIRMWARE_ENABLED or RAUC_FIRMWARE_ENABLED.
Firmware must be signed against a key registered to the organization: an
ed25519 key for fwup and AtomVM, a secure_boot_v2_rsa key for ESP-IDF,
or an x509_certificate key for RAUC.
Two per-product settings excuse a missing signature, and nothing else.
allow_unsigned_esp_idf_firmware accepts an ESP-IDF image with no signature
block, and allow_unsigned_atomvm_firmware accepts a packbeam with no
signature entry. Firmware that does carry a signature is always verified.
fwup archives and RAUC bundles are always verified.
The firmware’s own metadata declares which product it belongs to, and that must match the product in the path.
Authorizations
A user API token, or a product API key created in a product's settings.
A product API key only works on the routes for its own product, under
/api/orgs/{org_name}/products/{product_name}, and on /api/devices/{identifier}
for that product's devices. What it may do there is decided by the role it
holds, the same way a member's role decides what they may do.
Body
Firmware file upload

