Skip to main content

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

  • Missed json body or wrong param. Response sample:
      "error": "Wrong JSON body"
  • Required field is not provided. Response sample:
      "error": "Wrong JSON body: no value for `param`"
    where param - is a required field that was not provided
  • Field was of the wrong type. Response sample:
      "error": "Wrong JSON body: value `param` was of the wrong type"
    where param - is a field of the wrong type

Schema
  • error string

    Error information

Loading...