API Version: 6.2

Nightmode

Permissions

Requires System-Admin or Company-Admin permissions.

command 'update'

Path: /rest/dialplan/update/
Update nightmode settings for one or more companies and one or more nightmodes.
{    
    "type": "nm",
    "scope": {
        "company": ["company-id", ...]
    },
    "values": {
        "1": "on" or "off" or "sched",
        ... missing values unchanged ...
        "10": "on" or "off" or "sched"
    }
}
For example:
{
    "type": "nm",
    "scope": {
        "company": ["default"]
    },
    "values": {
        "2": "off",
        "3": "on",
        "4": "sched"
    }
}