3.5.8 DND
Získání aktuálního nastavení
Získá aktuální nastavení DND režimu.
URL: | https://{{ip_addr}}/api/v1/hipmo/settings/dnd |
HTTP Metoda: | GET |
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby.
|
Response data: | {
"data": {
"dnd": {
"isEnabled": false,
"time": 0
},
"dndNight": {
"days": [
5,
1,
4,
2,
3,
0,
6
],
"endTime": "00:00",
"isEnabled": false,
"startTime": "00:00"
}
}
}
|
Nastavení sekce
URL: | https://{{ip_addr}}/api/v1/hipmo/settings/dnd |
HTTP Metoda: | PUT |
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby.
|
| Request body: | {
"dnd": {
"isEnabled": "<boolean>",
"time": "<integer>"
},
"dndNight": {
"isEnabled": "<boolean>",
"startTime": "<string>",
"endTime": "<string>",
"days": [
"<integer>",
"<integer>"
]
}
}
|
Response data: | {
"data": {
"dnd": {
"isEnabled": false,
"time": 0
},
"dndNight": {
"days": [
5,
1,
4,
2,
3,
0,
6
],
"endTime": "00:00",
"isEnabled": false,
"startTime": "00:00"
}
}
}
|
