Apply Scene Template

Last Updated on : 2021-11-26 03:13:11download

Apply a scene template to a specified asset.

API address

POST: /v1.0/iot-03/scene-templates/{template_id}/assets/{asset_id}/actions/apply

Request parameter

Parameter name Type IN Required Description
template_id Long uri true The ID of a specified scene template.
asset_id String uri true The IDs of specified assets.

Return parameter

Parameter name Type Description
result String The automation ID.

Request example

POST: /v1.0/iot-03/scene-templates/189****/assets/142788436946849****/actions/apply

Return example

{ "result": "OOtNq81NfTt1****", "t": 1636597535453, "success": true }

Error code

For more information, see error code.