---
title: "调用设备属性"
method: POST
path: "/api/v1/things/device/interact/property-control-send"
tags: ["things/device/interact", "thingsDeviceInteract"]
---

# 调用设备属性

`POST /api/v1/things/device/interact/property-control-send`

## Request body

- DeviceInteractSendPropertyReq
  - `data` string, required — 属性数据, JSON格式字符串, 注意字段需要在物模型属性里定义
  - `deviceName` string, required — 设备名
  - `isAsync` boolean — 是否异步操作 异步情况通过获取接口来获取
  - `productID` string, required — 产品id
  - `shadowControl` integer — 设备影子控制 0:自动,当设备不在线的时候设置设备影子,设备在线时直接下发给设备 1:只实时下发,不在线报错 2:如果有设备影子只修改影子,没有的也不下发 3:只修改云端的值 4:只修改云端的值并记录操作日志
  - `syncTimeout` integer — 同步超时时间(单位:秒,不填默认3秒)
  - `withProfile` WithProfile
    - `code` string, required
    - `params` string, required

## Response `200`

A successful response.

- object
  - `code` integer
  - `data` DeviceInteractSendPropertyResp
    - `code` integer, required — 设备返回状态码
    - `msg` string, required — 返回状态
    - `msgToken` string, required — 调用id
  - `msg` string

---

[API](https://skmtc.net/unitedrhino/apis/things-api.md) · [All operations](https://skmtc.net/unitedrhino/apis/things-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unitedrhino/things-api/versions/f3bdeb916389/schema)
