Conversations
Create office hours
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the workflows:write ability
Body
application/jsonholidaysobject[] | nullDays closed all day, each a date as YYYY-MM-DD and an optional name; at most 100.
Maximum items: 100
Show child attributesHide child attributes
datestringrequiredThe day the team is closed all day, written YYYY-MM-DD, such as 2026-12-25.
namestringWhat the holiday is called, such as Christmas Day. It may be left out.
yearlybooleantrue to close on the same month and day every year; false or left out for that one date only. A yearly February 29 closes only in leap years.
is_defaultbooleantrue makes it the schedule used wherever none is named.
namestringrequiredThe name of the schedule, at most 60 characters.
Maximum length: 60
timezonestringrequiredAn IANA timezone, such as Europe/Paris.
Maximum length: 64
weeklyobjectrequiredMaps mon to sun to up to four [start, end] ranges as "HH:MM", such as {"mon": [["09:00", "17:00"]]}; 24:00 ends at midnight and a day left out is closed.
Response 201
CreateddataobjectrequiredShow child attributesHide child attributes
created_atstringrequiredWhen it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
holidaysanyrequiredDays closed all day, each an object with date (such as 2026-12-25), an optional name, and yearly true when it repeats every year.
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
is_defaultbooleanrequiredTrue for the workspace's default schedule.
namestringrequiredThe schedule's name.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
statusobjectrequiredShow child attributesHide child attributes
next_closestring | nullrequiredWhen the schedule next closes, while it is open; otherwise null.
Format: date-time
next_openstring | nullrequiredWhen the schedule next opens, while it is closed; null while it is open or when it never opens.
Format: date-time
openbooleanrequiredTrue when the schedule is open at the moment it was read.
timezonestringrequiredTimezone the hours are read in, such as Europe/Paris.
updated_atstringrequiredWhen it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
weeklyanyrequiredOpen hours by weekday, mon to sun, each a list of up to 4 [start, end] ranges as HH:MM, such as {"mon": [["09:00", "17:00"]]}; 24:00 ends at midnight.
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.