Calendar Create

This allows developers to create calendars for providers in Canvas. Calendars can be either Clinic or Administrative type and can optionally be associated with a location.

Build a Calendar with the attributes you want to set, then return its create() from your handler.

Methods #

create() → Effect #

Creates the calendar.

  • provider and type are required.

Attributes #

AttributeTypeDescriptionRequired
idstr \| UUID \| NoneOptional unique identifier for the calendar.No
providerstr \| UUIDThe id of the provider.Yes
typeCalendarTypeThe type of calendar: CalendarType.Clinic or CalendarType.Administrative.Yes
locationstr \| UUID \| NoneThe id of the location to associate with the calendar.No
descriptionstr \| NoneDescription of the calendar’s purpose.No

CalendarType #

An enumeration of calendar types:

ValueDescription
ClinicCalendar for clinical appointments
AdministrativeCalendar for administrative tasks

Example #

from canvas_sdk.effects.calendar import Calendar, CalendarType

Calendar(
   provider="provider-uuid",
   type=CalendarType.Clinic,
   location="location-uuid",
   description="Primary clinic calendar"
).create()