Skip to main content
POST
Set office hours

Path Parameters

orgId
string<uuid>
required

The ID of the organization

Body

Payload to create or update office hours for a specific day

dayOfWeek
enum<string>
required
Available options:
MONDAY,
TUESDAY,
WEDNESDAY,
THURSDAY,
FRIDAY,
SATURDAY,
SUNDAY
isClosed
boolean
required

Whether the office is closed on this day. When true, open and close times are not required.

open
string | null

Opening time in HH:mm format (e.g., '09:00'). Required when isClosed is false.

Pattern: ^([01]?[0-9]|2[0-3]):[0-5][0-9]$
close
string | null

Closing time in HH:mm format (e.g., '17:00'). Required when isClosed is false.

Pattern: ^([01]?[0-9]|2[0-3]):[0-5][0-9]$
breaks
object[]

Recurring breaks within this day's office hours, in the organization's timezone. During a break, inbound phone calls treat the office as closed for template feature availability (CLOSED features apply; OPEN features do not). The break's custom greeting overrides the closed greeting. Date-specific office closures take precedence over breaks. Every break requires start, end, reason, and greeting. Start must precede end; breaks must be within open/close and cannot overlap. Omit to preserve existing breaks; send [] to clear them. Nonempty breaks are not allowed when isClosed is true.

Response

Response returned when retrieving or updating office hours for a single day

success
enum<boolean>
required
Available options:
true
data
object
required

Office hours for a specific day of the week