things/schema/common
thingsSchemaCommon

新增通用物模型

post/api/v1/things/schema/common/create

Request body

affordancestring
controlModeinteger

控制模式: 1: 可以群控,可以单控 2:只能单控

descstring

描述

extendConfigstring

拓展参数

funcGroupinteger

功能分类: 1:普通功能 2:系统功能

idinteger

产品id

identifierstring

标识符

isCanSceneLinkageinteger

是否可以场景联动

isPasswordinteger

是否是密码类型,密码类型需要加掩码

namestring

功能名称

orderinteger

排序

recordModeinteger

1(默认) 记录历史记录 2 只记录差异值 3 不记录历史记录

requiredinteger

是否必须 1:是 2:否

typeinteger

物模型类型 1:property属性 2:event事件 3:action行为

userPerminteger

用户权限操作: 1:r(只读) 3:rw(可读可写)

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