curl --location --request POST 'https://api2.hik-cloud.com/api/v1/device/isapi/intelligent/personQueueDetection/config' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceSerial": "string",
"config": {
"PersonQueueDetectionInfo": {
"countingEnabled": true,
"queuetimeEnabled": true,
"confidence": null,
"minoffset": null,
"staytime": null,
"minsize": null,
"RuleInfo": [
{
"ruleID": 0,
"ruleName": "string",
"alarmIntervalTime": 0,
"personQueueCounting": {
"alarmCount": 0
},
"personQueueTime": {
"alarmTime": 0,
"Time": null
},
"regionColor": "string",
"osdoverlayEnabled": true,
"region": [
{
"x": 0,
"y": 0
}
]
}
]
}
}
}'