things/device/interact
thingsDeviceInteract

调用设备行为

post/api/v1/things/device/interact/action-send

Request body

actionIDstring required

产品数据模板中行为功能的标识符,由开发者自行根据设备的应用场景定义

deviceNamestring required

设备名

inputParamsstring

输入参数

isAsyncboolean

是否异步操作 异步情况通过获取接口来获取

outputParamsstring

输出参数(模拟的时候才需要填写) ,如果填写该参数,那么不会下发给设备,直接记录操作记录

productIDstring required

产品id

Response

A successful response.

codeinteger
msgstring

Changes

Changed in 2 of the 50 revisions of this API.31

  • b9582d0ab6af11See the full diff
    • added required request body

      request-body-added-required

    • added the media type application/json for the response with the status 200

      response-media-type-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • removed the request body

      request-body-removed

    • removed the media type application/json for the response with the status 200

      response-media-type-removed

    This revision also has 287 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog