Request ‒ Products/UploadFirmwareFile
The parameters in the request are specified as part of the HTTP Header.
Parameter
Type
Description
Mandatory
productId
String
This is the unique identifier automatically assigned by IoT Platform when a Product is created. This productId is returned in the response of the Products/Post.
Y
The file itself
This parameter does not have a name.
MIME Multipart Content Format
The firmware file itself, provided in MIME multipart content format.
Y
FirmwareVersion
String
The name/number of the firmware file version.
Y
x-filename
String
The name of the firmware file.
Y
Example Products/UploadFirmwareFile Request
curl -X POST \
https:// api.axonize.com /odata/products/{ProductId}/UploadFirmwareFile \
-H ‘Accept: application/json, text/plain, */*’ \
-H ‘Accept-Encoding: gzip, deflate’ \
-H ‘Content-Type: application/x-www-form-urlencoded’ \
-H ‘FirmwareVersion: {FirmwareVersion} \
-H ‘x-filename: {FileName}’