How can we help?

Searching:

0 results found

Devices/UpdateDeviceFirmware

GET /odata/Devices/[deviceId]/UpdateDeviceFirmware

Description

Updates a device’s firmware.

Before this endpoint can be used, the UploadFirmwareFile endpoint must have been used to upload the firmware to the Axonize cloud repository for the product to which this Device belongs.

UpdateDeviceFirmware requires the deviceId to which to load the firmware and the firmware file ID as input.

See the following for request and response details ‒

See Also

Request ‒ Devices/UpdateDeviceFirmware

The parameters in the request are specified as part of the HTTP Header.

Property Type Description Mandatory
deviceId String A unique identifier that is automatically generated for this Device by Axonize. This is the Device to which the firmware will be loaded. Y
FirmwareFileId String This is the unique identifier of the firmware file. A file id is automatically assigned by Axonize when a firmware file is created using the UploadFirmwareFile endpoint. Y

Example Devices/UpdateDeviceFirmware Request

curl -X POST \

  http://api.axonize.com/odata/devices/{DeviceId}/UpdateDeviceFirmware \

  -H ‘Accept: application/json, text/plain, */*’ \

  -H ‘Content-Type: application/json’ \

  -d ‘{

                “firmwareFileId”: “{FileId}”

}’

Response ‒ Devices/UpdateDeviceFirmware

Status 200 – OK