Confirm device upgrade

Last Updated on : 2023-07-06 07:36:42download

Confirm device upgrade

API address

POST: /v1.0/iot-03/devices/{device_id}/confirm-upgrade

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueDevice ID

Description of body

Parameter nameTypeINRequiredDescription
module_typeIntegerbodytrueFirmware corresponding channel number, can be obtained from the list of available firmware upgrades

Return parameter

Parameter nameTypeDescription
resultBooleanReturn result

Request example

POST: /v1.0/iot-03/devices/002000425ccf7fc7342a/confirm-upgrade
{
  "module_type": 1
}

Return example

true

Error code

For more information, see error code.