Create a calendar
Defines a bookable calendar.
timezone is required and is the calendar’s own zone. Opening hours are read in it, and a booking anchors to it. An unknown IANA zone is refused.
weeklyHours is keyed by sun, mon, tue, wed, thu, fri, sat, each an array of {start, end} in 24-hour HH:MM. A day you leave out is closed. A window that ends at or before its start is refused, so no window crosses midnight.
Other settings default to what a GoHighLevel calendar uses: slotDurationMinutes 30, slotIntervalMinutes 30, slotBufferMinutes 0, appointmentsPerSlot 1, minNoticeMinutes 180, maxDaysOut 31.
When the agent finds no free time, check minNoticeMinutes and the opening hours first. Three hours’ notice on a calendar that closes at 17:00 leaves nothing after 14:00.
Cookie-auth callers must send the x-csrf-token header.
Required API key scope: projects:write.
Authorizations
Query Parameters
Body
The calendar.
A calendar to create, or the parts of one to change. On an update, the calendar is validated as it will be after the change.
