1.URL
http://124.223.60.234:8080/system/asset/rule/updateRuleFlowConfig
2.请求参数
2.1请求头
在Headers里面增加token:对应登录验证成功后,data里面对应的tokenId
2.2.参数示例
{
"id":"35919059D727458DBDE2B276860D9977",
"orgId":"F940B79790004404AAC277418FC71C5E",
"ruleName":"Rule Flow 001",
"expireDate":"2025-11-21 00:00:00",
"status":1,
"targetType":0,
"targetIds":"[\"8D0C43EDAA4B42D89D663808BB36D976\",\"8D0C43EDAA4B42D89D663808BB36D976\",\"EEEE76492D804C1A91524A4997066E4D\",\"8B60985EA2314D8D944C4B5C9044782C\"]",
"conditionIds":"[\"tempCondition\",\"humidityCondition\"]",
"actionIds":"[\"emailAction\",\"newAlarmAction\"]",
"params":"{\"tempCondition\":{\"threshold\":30,\"operator\":\">\"},\"humidityCondition\":{\"threshold\":40,\"operator\":\"<\"},\"emailAction\":{\"subject\":\"Rule Flow\",\"templateContent\":\"\",\"recipients\":\"daoxunchang@foxmail.com\",\"paramsJson\":\"{\"userName\":\"Li\", \"vehicleNum\":\"TEST0001\", \"terminalNum\":\"13430618239\", \"alarmName\":\"RULE FLOW\", \"dateTime\":\"2025-09-21 00:00:00\", \"url\":\"http://124.223.60.234:9090\", \"contactEmail\":\"leave_iot@163.com\" }\",},\"newAlarmAction\":{\"alarmName\":\"Rule Flow Test\"}",
"descInfo":"xxxxxxxxxxxxxxx"
}
2.3.参数说明
| 字段 | 类型 | 说明 | 是否必须 |
|---|---|---|---|
| id | String | 规则唯一标识 | Y |
| orgId | String | 公司唯一标识 | Y |
| ruleName | String | 任务名称 | Y |
| expireDate | String | 到期日期(UTC) | Y |
| status | int | 0:禁用;1:启用 | Y |
| targetType | int | 0:设备触发;1:组织触发 | Y |
| targetIds | String | 触发的唯一标识集合.JSON字符串,targetType是0的时候,是设备ID集合;targetType是1的时候是组织ID集合 | Y |
| conditionIds | String | 条件组件ID集合.JSON字符串 | Y |
| actionIds | String | 执行组件ID集合.JSON字符串 | Y |
| params | String | 这些组件对应的参数JSON字符串,详情参考:http://124.223.60.234:8282/docs/leave20230416/leave20230416-1gpbofa9v5jp0 | Y |
| descInfo | String | 流程描述 | Y |
3.接口应答
3.1.返回示例
{
"code": 200,
"message": "Operation succeeded",
"data": null
}Author:admin Create time:2025-09-23 14:06
Last editor:admin Update time:2025-10-31 14:50
Last editor:admin Update time:2025-10-31 14:50