配置指定NTP服务器参数
POST
https://api2.hik-cloud.com/api/v1/device/isapi/system/time/ntpServers
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api2.hik-cloud.com/api/v1/device/isapi/system/time/ntpServers' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceSerial": "C13032017",
"ntpServerId":1,
"ntpServer":{
"id": "1",
"addressingFormatType": "hostname",
"hostName": "time.windows.com",
"ipAddress": "192.168.1.1",
"ipv6Address": null,
"portNo": 123,
"synchronizeInterval": 1440
}
}'
响应示例响应示例
{
"code": 200,
"message": "操作成功"
}
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{access_token}}
Body 参数application/json
返回响应
修改于 2022-05-27 06:07:32