规则配置
POST
https://api2.hik-cloud.com/api/v1/open/collectors/local/rules/create
配置采集规则。
*备注:*规则配置最好在采集前完成,如果在人员采集过程中改变了采集规则,会导致设备上已采集人员的数据变成脏数据。不影响已经通过消息上报的人员采集信息。
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api2.hik-cloud.com/api/v1/open/collectors/local/rules/create' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceSerial": "X34289430",
"reqAdminRights": true,
"cardNoAdaptive": false,
"rules": [
{
"dataType": "employeeNo",
"enable": true,
"length": 64
},
{
"dataType": "name",
"enable": true,
"uniqueCheck": false,
"length": 4
},
{
"dataType": "fingprint",
"enable": true,
"number": 2,
"fingerprintNos": [1, 2]
},
{
"dataType": "card",
"enable": true,
"length": 4,
"number": 1
}
]
}'
响应示例响应示例
{
"code": 200,
"message": "操作成功"
}
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{access_token}}
Body 参数application/json
返回响应
修改于 2022-05-25 07:07:43