Execute Tap-to-Run

Last Updated on : 2023-07-06 08:27:50download

Execute a specified tap-to-run scene based on the tap-to-run ID.

API address

PUT: /v2.0/iot-03/scenes/{scene_id}/trigger

Request parameter

Parameter nameTypeINRequiredDescription
scene_idStringuritrueThe ID of a tap-to-run scene.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result. Valid values: true: succeeded. false: failed.

Request example

PUT: /v2.0/iot-03/scenes/snVgqwQ8tAr4****/trigger

Return example

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

Error code

For more information, see error code.