3.5.8 DND

Getting current settings

Get the current DND settings.

URL:

https://{{ip_addr}}/api/v1/hipmo/settings/dnd

HTTP method:

GET

Response code:

Standard HTTP response code, treating syntactic errors.

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"
        }
    }
}

Section setting

URL:

https://{{ip_addr}}/api/v1/hipmo/settings/dnd

HTTP method:

PUT

Response code:

Standard HTTP response code, treating syntactic errors.

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"
        }
    }
}