Authorization: Bearer ********************
// {
// "areaEnable": 0,
// "isEnable": 1,
// "isdel": 0,
// "ruleName": "144,设备,断电拆除/设备拔出预警",
// "ruleType": 31,
// "tenantId": "ding719b03ae7835ed5a35c2f4657eb6378f",
// "timeEnable": 0
// }
{
"areaEnable": 1,
// "areaId": 981, // 带区域ID时,忽略传输区域信息,不校验区域:areaId不为空时,shapeType、circles、areaPoints可不填
"circles": "119.461015,25.452319,0.12237603039430837",
"enableTimeFrom": "2022-01-01 00:00:00",
"enableTimeTo": "2023-12-31 00:00:00",
"isEnable": 1,
"isdel": 0,
"ruleName": "进出围栏",
"ruleType": 21,
"shapeType": 2,
"tenantId": "ding147f43fe2ab7311b35c2f4657eb6378f",
"timeEnable": 1
}
curl --location -g --request POST 'localhost:9000/api/rules/batch?devices=12630152728' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '// {
// "areaEnable": 0,
// "isEnable": 1,
// "isdel": 0,
// "ruleName": "144,设备,断电拆除/设备拔出预警",
// "ruleType": 31,
// "tenantId": "ding719b03ae7835ed5a35c2f4657eb6378f",
// "timeEnable": 0
// }
{
"areaEnable": 1,
// "areaId": 981, // 带区域ID时,忽略传输区域信息,不校验区域:areaId不为空时,shapeType、circles、areaPoints可不填
"circles": "119.461015,25.452319,0.12237603039430837",
"enableTimeFrom": "2022-01-01 00:00:00",
"enableTimeTo": "2023-12-31 00:00:00",
"isEnable": 1,
"isdel": 0,
"ruleName": "进出围栏",
"ruleType": 21,
"shapeType": 2,
"tenantId": "ding147f43fe2ab7311b35c2f4657eb6378f",
"timeEnable": 1
}'
{
"code": 0,
"data": {
"areaEnable": 0,
"areaId": 0,
"areaPoints": "string",
"areaType": 0,
"circles": "string",
"clientId": "string",
"createTime": "string",
"enableTimeFrom": "string",
"enableTimeTo": "string",
"isEnable": 0,
"isdel": 0,
"ruleAreaHistoryId": 0,
"ruleId": 0,
"ruleName": "string",
"ruleType": 0,
"shapeType": 0,
"tenantId": "string",
"threshold1": "string",
"threshold2": "string",
"threshold3": "string",
"threshold4": "string",
"threshold5": "string",
"timeEnable": 0,
"updateTime": "string"
},
"message": "string",
"success": true
}