Setup DND settings
Configures DND (Do not disturb) settings.
There is two modes:
- silent mode, when incoming call is visible on screen but sound is disabled
- dnd mode, when incoming call is skipped
- application/json
Request Body required
- enable_silent_mode_schedule boolean required
Determines whether the silent mode is enabled. Incoming calls are visible for user but sound is muted
- enable_dnd_mode_schedule boolean required
Determines whether the DND mode is enabled. Incoming calls are ignored.
- dnd_time_from string required
DND mode starting time
- dnd_time_to string required
DND mode ending time
- silence_time_from string required
Silence mode starting time
- silence_time_to string required
Silence mode ending time
Responses
- 200
- 401
- Missed json body or wrong param.
Response sample:
"error": "Wrong JSON body"
- Required field is not provided.
Response sample:where
"error": "Wrong JSON body: no value for `param`"
param
- is a required field that was not provided - Field was of the wrong type.
Response sample:where
"error": "Wrong JSON body: value `param` was of the wrong type"
param
- is a field of the wrong type
- application/json
- Schema
- Example (from schema)
- Base
- Missed param
- Wrong param type
Schema
- error string
Error information
{
"error": true
}
{
"error": "Wrong JSON body"
}
{
"error": "Wrong JSON body: no value for `param`"
}
{
"error": "Wrong JSON body: value `param` was of the wrong type"
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Log In
Schema
- error string
Error information
{
"error": "Log In"
}
{
"error": "Log In"
}
Loading...