访客预约登记
POST
https://api2.hik-cloud.com/api/v1/edu/visitor/visitors
功能描述
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api2.hik-cloud.com/api/v1/edu/visitor/visitors' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"schoolId":"10a795f4a25d4de09edd091f28747eb6",
"personId":"00a795f4a25d4de09edd091f28747eb4",
"personType":1,
"visitorName":"张三",
"gender":1,
"phone":"13325478454",
"visitorEffectiveTime":"2018-01-01T12:00:00+08:00",
"visitorLeaveTime":"2018-01-02T12:00:00+08:00",
"visitReason":"视察",
"deviceSerials":"C86106665,C86106666"
}'
响应示例响应示例
{
"code": 200,
"message": "操作成功",
"data": {
"reservationId": "00a795f4a25d4de09edd091f28747eb9",
"visitorCode": "VjAwMSuk5WP0ZGlMa9WVEbhsLHro4vInm5BfCyn3dBgU3LrjvnYiKbgt6OLvA4UhH0h/wLY="
}
}
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{access_token}}
Body 参数application/json