Apply Scene Template

Last Updated on : 2023-06-15 05:07:56

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.