Remove Electrical Devices

Last Updated on : 2023-06-21 07:13:06download

Remove electrical devices from a specified space ID. Up to 20 devices can be removed each time.

API address

POST: /v1.0/iot-03/energy/{energy_type}/space/{space_id}/devices-remove

Request parameter

Parameter name Type IN Required Description
energy_type String uri true The energy type. Set the value to electricity.
space_id String uri true The ID of a specified space.

Return parameter

Parameter name Type Description
result Boolean The result of removal.

Request example

POST: /v1.0/iot-03/energy/electricity/space/xxx/devices-remove
{ "devices": [ "xxx" ] }

Return example

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

Error code

For more information, see error code.