Trigger Tap-to-Run

Last Updated on : 2023-11-23 03:44:02download

Trigger a tap-to-run scene based on the ID of the specified linkage rule.

API address

POST: /v2.0/cloud/scene/rule/{rule_id}/actions/trigger

Request parameter

Parameter nameTypeINRequiredDescription
rule_idStringuritrueThe ID of the specified linkage rule.

Return parameter

Parameter nameTypeDescription
resultBooleanThe result that specifies whether the tap-to-run scene is triggered.

Request example

POST: /v2.0/cloud/scene/rule/***/actions/trigger

Return example

{
    "tid": "****",
    "result": true,
    "t": 1677741828415,
    "success": true
}

Error code

For more information, see error code.

Limits on API Request Frequency

For more information, see Limits on API Request Frequency.