Modify the device information

Last Updated on : 2023-06-20 15:17:40download

Modify the device information, such as device name.

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueDevice ID

Description of body

Parameter nameTypeINRequiredDescription
nameString trueDevice name

Return parameter

Parameter nameTypeDescription

Request example

PUT: /v1.0/iot-03/devices/xxxid
  "name": "Bedroom bedside light"

Return example

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

Error code

For more information, see error code.