How can we help?

Searching:

0 results found

Products/UploadFirmwareFile

GET /odata/Products/[productId]/UploadFirmwareFile

Description

Uploads a firmware file for a specific Product. A device belonging to the specified Product can retrieve the firmware file and update its firmware using UpdateDeviceFirmware.

See the following for request and response details ‒

See Also

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 Axonize 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}’

Response ‒ Products/UploadFirmwareFile

Parameter Type Description
id String Axonize generates a unique identifier for every file uploaded using this command. This is the ID of the firmware file.
version String The version of the firmware file.
URL String The location of the firmware file on the Axonize repository.
hash String The MD5 hash of the firmware file.
name String The name of the file.
createDate String See Common Response Properties.

  

Example Products/UploadFirmwareFile Response

Status 200 – OK

{

    “id”: “ID”,

    “version”: “VERSION”,

    “url”: “URL”,

    “hash”: “HASH”,

    “name”: “NAME”,

    “creationDate”: “DATE”

}