things/device/interact
thingsDeviceInteract

调用设备行为

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

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body

actionIDstring required

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

deviceNamestring required

设备名

inputParamsstring

输入参数

isAsyncboolean

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

outputParamsstring

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

productIDstring required

产品id

Response

A successful response.

codeinteger
msgstring

Changes

    • breaking

      added required request body

    • info

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

    • breaking

      removed the request body

    • breaking

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