Get
Function
This API is used to get Alarm > Linkage Schedule parameters.
Request Message
See Alarm > LinkageSchedule > Range > Parameter Description > Table 1 for parameter description.
Sample:
POST /API/AlarmConfig/Schedule/Get HTTP/1.1
{
"version": "1.0",
"data": {
"page_type": "AlarmConfig",
"channel":["CH1"]
}
}
Response Message
See Alarm > LinkageSchedule > Range > Parameter Description > Table 2 for parameter description.
Sample:
HTTP/1.1 200 OK
Content-Type: application/json
{
"result": "success",
"data": {
"channel_info": {
"CH1": {
"schedule":
[
{
"schedule_type": "Motion",
"week":
[
{
"day": "Sun",
"time": [1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1]
},
{
"day": "Mon",
"time": [1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1]
},
{
"day": "Tue",
"time": [1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1]
},
{
"day": "Wed",
"time": [1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1]
},
{
"day": "Thu",
"time": [1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1]
},
{
"day": "Fri",
"time": [1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1]
},
{
"day": "Sat",
"time": [1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1]
},
]
}
]
}
}
}
}
Error Code
See Response Messages Body and Common error_code for more information.