Developers API
setDoNotDisturbPeriod
Create or update a Do Not Disturb period for the specified contact/channel.
Tip: Find your contactChannelId with the getContactList API command.
Request Parameters
Parameter | Data Type | Description | Required | Default |
---|---|---|---|---|
contactchannelid | integer | The ID of the contact/channel to have a Do Not Disturb period scheduled | Required | - |
start | string | The starting time of the period (HH:mm, 24-hour clock, e.g. '15:30') | Required | - |
end | string | The ending time of the period (HH:mm, 24-hour clock) | Required | - |
timezone | string | The POSIX standard timezone of the starting and finishing times; e.g. 'GMT' or 'Europe/London' | Required | - |
recurrence | enum | ONCEONLY, DAILY, WEEKLY, or MONTHLY indicating how the pattern of recurrence | Required | - |
on | string | A date in YYYY-MM-DD format for ONCEONLY periods. The day of the week (e.g. 'Sunday') for WEEKLY periods. The day of the month (1-31 or 'LASTDAY') for MONTHLY periods. Ommitted for DAILY periods. | Optional | |
periodid | integer | Specify a PeriodID if you wish to update an existing period; otherwise a new one will be created | Optional |
Response Data
Response Variable | Data Type | Description |
---|---|---|
errorcode | integer | Returns an errorcode of 0 if call is successful. |
periodid | integer | Returns the PeriodID of the updated or newly created period. |