Unbind Scene

Last Updated on : 2023-12-07 03:33:58

This API applies to scene switch devices. After binding, a switch in the scene switch can be unbound from the specified scene.

API address

DELETE: /v1.0/devices/{device_id}/scenes/{scene_id}

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe device ID.
scene_idStringuritrueThe scene ID.

Description of body

Parameter nameTypeINRequiredDescription
codeStringbodytrueThe code of a standard instruction. This value corresponds with the scene switch button.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.

Request example

DELETE: /v1.0/devices/vdevo1575****00013095/scenes/EqFkQ79*****tjlkTm
{
  "code": "scene_1"
}

Return example

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

Error code

For more information, see error code.