- 物模型分组
- 产品业务
- 产品版本
- 产品属性
- 产品服务
- 产品事件
- 产品基础属性
- 设备相关接口
- 设备相关接口(配网业务专用)
- 设备规约配置
- 设备基础属性
- 设备属性
- 获取边设备属性信息
- 获取设备属性历史值( 单个设备的)
- 获取设备属性历史值(多个设备的)
- 获取物模型属性最新值(单个设备的单个属性)
- 获取物模型属性最新值(单个设备的多个属性)
- 获取物模型属性最新值(多个设备的多个属性)
- 获取物模型属性最新值(单个设备的单个属性)--包括属性信息
- 获取物模型属性最新值(单个设备的多个属性)--包括属性信息
- 获取物模型属性最新值(多个设备的多个属性)--包括属性信息
- 获取物模型属性最新值(单个设备的多个属性)--包括属性信息 带分页
- 属性写入(多个属性)
- 属性写入(单个属性)
- 获取台区设备属性值(调试用)
- 统计键值时长
- 查询单个设备多个属性的历史数据聚合
- 查询多个设备多个属性的历史数 据聚合
- 获取物模型属性最新值(多个设备的多个属性)--包括在线信息
- 导出设备属性历史数据
- 设备属性(v2)
- 设备服务
- 设备事件
- 设备操作日志
- 设备驱动
- 枚举相关
- 边缘业务
- emqx
- 登陆相关接口
- API审计日志
- 用户接口
- 组态接口
- 租户接口
- 资源组相关接口
- 统计
- 摄像头告警
- 终端app管理
- 终端app操作历史
- 厂商管理
- 工具接口
- 终端应用管理
- 终端应用操作历史
- 声纹识别
- 设备管理
- 设备应用状态
- 终端状态
- 系统配置
- 通信单元
- 微网接口
- 开发分支接口
- 系统常量
- 设备告警规则
- 告警记录
- 担干岛分支接口
- 设备逻辑属性
- 数采服务
- 设备通道配置
- 图形--南控分支
- 获取上传路径 getUploadUrl
- 确认上传 confirmUpload
- 获取下载路径 getDownloadUrl
- createOrUpdateGraph/ 创建或修改图片graphSource
- getGraphDetails/ 查看某个图片详情 graphSource
- createOrUpdateGraphDevice/ 新增或者更新接线图设备 graphDevice
- getGraphs/ 查询接线图列表
- getGraphCustomList/ 获取接线图svg自定义dom节点列表 graphDevice
- getGraphDeviceList/获取接线图设备列表 graphDevice
- 删除接线图设备
- 删除接线图
- 分页查询接线图列表
- 获取 充电桩、储能、光伏、风电 有功调节值(仅南控分支)
- 配网
- 临时测试
- 设备数据推送平台相关接口
- 甘肃AI辅控相关接口
- 角色接口
- OTA业务
- 规则链文件管理
- AI辅控-场景联动
创建产品版本(大表单)
iot-dev.utapp.cn
https://iot-dev.utapp.cn
iot-dev.utapp.cn
https://iot-dev.utapp.cn
POST
/api/productVersion/saveProductVersion
productVersion
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Authorization-Type
string
必需
默认值:
{{auth}}
X-Authorization
string
必需
默认值:
{{token}}
Body 参数application/json
productId
string
产品ID
version
string
版本号
properties
array [object {9}]
物模型之属性
identifier
string
可选
name
string
可选
desc
string
可选
valueInfo
object
可选
accessMode
string
可选
store
boolean
可选
filter
boolean
可选
storeRule
object
可选
filterRule
object
可选
serves
array [object {6}]
物模型之服务
name
string
可选
identifier
string
可选
desc
string
可选
inputs
array [object {4}]
可选
outputs
array [object {4}]
可选
customId
string
可选
events
array [object {8}]
物模型之事件
enableParamsVerify
boolean
可选
name
string
可选
identifier
string
可选
desc
string
可选
eventInfos
array [object {4}]
可选
customId
string
可选
sort
integer <int32>
排序
values
object
值
basicProperties
array [object {5}]
可选
name
string
可选
identifier
string
可选
dataType
string
可选
value
string
可选
unit
string
可选
logicProperties
array [object {9}]
可选
identifier
string
可选
name
string
可选
desc
string
可选
valueInfo
object
可选
accessMode
string
可选
store
boolean
可选
filter
boolean
可选
storeRule
object
可选
filterRule
object
可选
propertyGroups
array [object {8}]
可选
id
string
必需
identifier
string
必需
productId
string
必需
name
string
必需
sort
integer
必需
type
string
必需
parentId
string
必需
propertyIds
array[string]
必需
serverMappings
array [object {9}]
可选
id
string
可选
mappingId
string
可选
productId
string
可选
desc
string
可选
mappingType
string
可选
value
string
可选
identifier
string
可选
serviceId
string
可选
param
array [object {5}]
可选
示例
{
"basicProperties": [
{
"name": "业务属性名称",
"identifier": "业务属性标识",
"dataType": "LONG",
"value": "10",
"unit": "m"
}
],
"events": [
{
"name": "物模型事件",
"identifier": "物模型事件标识",
"desc": "物模型事件描述",
"enableParamsVerify": true,
"eventInfos": [
{
"name": "事件1",
"identifier": "事件标识1",
"customId": 1720401598748,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"elementType": {},
"elements": {},
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
},
{
"name": "事件参数2",
"identifier": "事件参数标识2",
"customId": 1720401620871,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"elementType": {},
"elements": {},
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
}
],
"customId": "dnuy7sg9ke8lycapgzh"
}
],
"serves": [
{
"name": "物模型服务",
"identifier": "物模型服务标识",
"desc": "物模型服务描述",
"inputs": [
{
"name": "物模型参数1",
"identifier": "物模型参数2",
"customId": 1720401453065,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
},
{
"name": "物模型参数2",
"identifier": "物模型参数表示2",
"customId": 1720401486029,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
}
],
"outputs": [
{
"name": "物模型输出参数1",
"identifier": "物模型输出参数标识1",
"customId": 1720401522282,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"elementType": {},
"elements": {},
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
}
],
"customId": "d6rlgpewe75lycandgx"
}
],
"properties": [
{
"identifier": "物模型属性标识",
"name": "物模型属性",
"desc": "物模型属性描述",
"valueInfo": {
"valueType": "LONG",
"unit": "m",
"elements": {},
"precision": 0,
"coefficient": 0
},
"accessMode": "READ_ONLY",
"store": true,
"filter": true,
"storeRule": {},
"filterRule": {
"ignoreDuplicate": true,
"deadZone": 1,
"regions": [
{
"left": 1,
"right": 100
},
{
"left": 200,
"right": 300
}
]
}
}
],
"logicProperties": [
{
"identifier": "物模型属性标识",
"name": "物模型属性",
"desc": "物模型属性描述",
"valueInfo": {
"valueType": "LONG",
"unit": "m",
"elements": {}
},
"accessMode": "READ_ONLY",
"store": true,
"filter": true,
"storeRule": {},
"filterRule": {
"ignoreDuplicate": true,
"deadZone": 1,
"regions": [
{
"left": 1,
"right": 100
},
{
"left": 200,
"right": 300
}
]
}
}
],
"propertyGroups": [
{
"id": "QOPKYBYCY2k",
"identifier": "t1",
"productId": "CNGVwLM53Ps",
"name": "测试",
"sort": 1,
"type": "BasicProperty",
"parentId": "",
"propertyIds": null
},
{
"id": "h8AFijvdHip",
"identifier": "csx",
"productId": "CNGVwLM53Ps",
"name": "测试勋",
"sort": 3,
"type": "BasicProperty",
"parentId": "479Uu4_Imwj",
"propertyIds": [
"threshold",
"refHydraulic_0"
]
}
],
"serverMappings": [
{
"id": "21LdAG23kz-",
"mappingId": "double",
"productId": "gjyzb0qOmEU",
"desc": "",
"mappingType": "service",
"value": "5",
"identifier": "",
"serviceId": "YK_DOUBLE",
"param": [
{
"identifier": "value",
"value": "10",
"default": false,
"dataType": "",
"name": ""
}
]
}
],
"name": "无人车2",
"version": "V1.0",
"productId": "3icrjY2nOrL"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://iot-dev.utapp.cn/api/productVersion/saveProductVersion' \
--header 'Authorization-Type;' \
--header 'X-Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"basicProperties": [
{
"name": "业务属性名称",
"identifier": "业务属性标识",
"dataType": "LONG",
"value": "10",
"unit": "m"
}
],
"events": [
{
"name": "物模型事件",
"identifier": "物模型事件标识",
"desc": "物模型事件描述",
"enableParamsVerify": true,
"eventInfos": [
{
"name": "事件1",
"identifier": "事件标识1",
"customId": 1720401598748,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"elementType": {},
"elements": {},
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
},
{
"name": "事件参数2",
"identifier": "事件参数标识2",
"customId": 1720401620871,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"elementType": {},
"elements": {},
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
}
],
"customId": "dnuy7sg9ke8lycapgzh"
}
],
"serves": [
{
"name": "物模型服务",
"identifier": "物模型服务标识",
"desc": "物模型服务描述",
"inputs": [
{
"name": "物模型参数1",
"identifier": "物模型参数2",
"customId": 1720401453065,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
},
{
"name": "物模型参数2",
"identifier": "物模型参数表示2",
"customId": 1720401486029,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
}
],
"outputs": [
{
"name": "物模型输出参数1",
"identifier": "物模型输出参数标识1",
"customId": 1720401522282,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"elementType": {},
"elements": {},
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
}
],
"customId": "d6rlgpewe75lycandgx"
}
],
"properties": [
{
"identifier": "物模型属性标识",
"name": "物模型属性",
"desc": "物模型属性描述",
"valueInfo": {
"valueType": "LONG",
"unit": "m",
"elements": {},
"precision": 0,
"coefficient": 0
},
"accessMode": "READ_ONLY",
"store": true,
"filter": true,
"storeRule": {},
"filterRule": {
"ignoreDuplicate": true,
"deadZone": 1,
"regions": [
{
"left": 1,
"right": 100
},
{
"left": 200,
"right": 300
}
]
}
}
],
"logicProperties": [
{
"identifier": "物模型属性标识",
"name": "物模型属性",
"desc": "物模型属性描述",
"valueInfo": {
"valueType": "LONG",
"unit": "m",
"elements": {}
},
"accessMode": "READ_ONLY",
"store": true,
"filter": true,
"storeRule": {},
"filterRule": {
"ignoreDuplicate": true,
"deadZone": 1,
"regions": [
{
"left": 1,
"right": 100
},
{
"left": 200,
"right": 300
}
]
}
}
],
"propertyGroups": [
{
"id": "QOPKYBYCY2k",
"identifier": "t1",
"productId": "CNGVwLM53Ps",
"name": "测试",
"sort": 1,
"type": "BasicProperty",
"parentId": "",
"propertyIds": null
},
{
"id": "h8AFijvdHip",
"identifier": "csx",
"productId": "CNGVwLM53Ps",
"name": "测试勋",
"sort": 3,
"type": "BasicProperty",
"parentId": "479Uu4_Imwj",
"propertyIds": [
"threshold",
"refHydraulic_0"
]
}
],
"serverMappings": [
{
"id": "21LdAG23kz-",
"mappingId": "double",
"productId": "gjyzb0qOmEU",
"desc": "",
"mappingType": "service",
"value": "5",
"identifier": "",
"serviceId": "YK_DOUBLE",
"param": [
{
"identifier": "value",
"value": "10",
"default": false,
"dataType": "",
"name": ""
}
]
}
],
"name": "无人车2",
"version": "V1.0",
"productId": "3icrjY2nOrL"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
message
string
必需
data
string
必需
示例
{"code":0,"success":true,"message":"操作成功","data":"FQwBv7QQa6P"}