物模型
更新时间: 2023-04-19

# 导入物模型描述

# 基本信息

Path: /v1/products/:instanceId/:productKey/features/batch

Method: POST

接口描述: 请求参数格式与获取物模型接口返回结果格式一致

# 请求参数

路径参数

参数名称 示例 备注
instanceId
productKey

Body

名称类型是否必须默认值备注其他信息
propertiesobject非必须一个字段代表一个属性,其中字段名为属性名
├─ propertyName1object非必须
├─ displayNamestring非必须
├─ descriptionstring非必须
├─ dataSchemaobject非必须
├─ @typestring非必须
├─ writableboolean非必须
├─ unitstring非必须
├─ @idstring非必须
├─ @typestring []非必须
├─非必须
commandsobject非必须一个字段代表一个命令,其中字段名为命令名
├─ commandName1object非必须
├─ displayNamestring非必须
├─ descriptionstring非必须
├─ @idstring非必须
├─ @typestring非必须
eventsobject非必须一个字段代表一个事件,其中字段名为事件名
├─ eventName1object非必须
├─ displayNamestring非必须
├─ descriptionstring非必须
├─ @idstring非必须
├─ @typestring非必须
@idstring非必须
@contextstring []非必须
├─非必须

# 返回数据

# 获取物模型描述

# 基本信息

Path: /v1/products/:instanceId/:productKey/features/detail

Method: POST

接口描述:

# 请求参数

路径参数

参数名称 示例 备注
instanceId
productKey

# 返回数据

{
  "@id": "dtml:Light;1",
  "@context": [
    "dtml:context:thing;1"
  ]
}