Skip to main content

appointmentCalendarsByAppointmentTypeId

Appointment calendars aggregated across all booking pages for a given appointment type. Used by the appointment creation flow to surface calendars by service type without requiring a booking link selection. Calendars are de-duplicated when attached to multiple booking pages for the same appointment type. When assignedUserId is provided, the result is the intersection of the per-type calendars and the calendars whose bookable users include that assignee.

Arguments

appointmentTypeIdID!

The appointment type ID to resolve calendars for

assignedUserIdID

When set, restricts the result to calendars whose bookable users (for the given appointmentTypeId) include this user. When combined with appointmentTypeId the result is the intersection of both constraints. Used by the admin appointment-creation flow so the calendar picker can be driven by the assignee selection.

Returns

[AppointmentCalendar!]!
A calendar where events can be booked to