Modify the frozen status of a device

Last Updated on : 2023-06-19 07:05:58

Freeze or unfreeze a device.

API address

PUT: /v1.0/iot-03/devices/{device_id}/freeze-state

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueDevice ID

Description of body

Parameter nameTypeINRequiredDescription
stateInteger trueThe device status after modification:
  • 0: normal
  • 1: frozen

Return parameter

Parameter nameTypeDescription
resultBoolean

Request example

PUT: /v1.0/iot-03/devices/xxxxId/freeze-state
{
  "state": 1
}

Return example

{
    "result": true,
    "t": 1591872112140,
    "success": true
}

Error code

For more information, see error code.