Skip to content
dimmiDocs

Conversations

Create office hours

POST/api/v1/schedules

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the workflows:write ability

Body

application/json
holidaysobject[] | null

Days closed all day, each a date as YYYY-MM-DD and an optional name; at most 100.

Maximum items: 100

Show child attributes
datestringrequired

The day the team is closed all day, written YYYY-MM-DD, such as 2026-12-25.

namestring

What the holiday is called, such as Christmas Day. It may be left out.

yearlyboolean

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

true makes it the schedule used wherever none is named.

namestringrequired

The name of the schedule, at most 60 characters.

Maximum length: 60

timezonestringrequired

An IANA timezone, such as Europe/Paris.

Maximum length: 64

weeklyobjectrequired

Maps 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

Created
dataobjectrequired
Show child attributes
created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

holidaysanyrequired

Days closed all day, each an object with date (such as 2026-12-25), an optional name, and yearly true when it repeats every year.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

is_defaultbooleanrequired

True for the workspace's default schedule.

namestringrequired

The schedule's name.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

statusobjectrequired
Show child attributes
next_closestring | nullrequired

When the schedule next closes, while it is open; otherwise null.

Format: date-time

next_openstring | nullrequired

When the schedule next opens, while it is closed; null while it is open or when it never opens.

Format: date-time

openbooleanrequired

True when the schedule is open at the moment it was read.

timezonestringrequired

Timezone the hours are read in, such as Europe/Paris.

updated_atstringrequired

When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

weeklyanyrequired

Open 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

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.