Modify Device Name

Last Updated on : 2023-06-15 06:09:54

Modify the custom name of a specified device.

API address

PUT: /v1.0/iot-02/lighting/devices/name

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
spaceIdStringbodytrueThe ID of a specified space.
deviceIdStringbodytrueThe device ID.
deviceNameStringbodytrueThe name of a specified device.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.

Request example

PUT: /v1.0/iot-02/lighting/devices/name

Return example

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

Error code

For more information, see error code.