action drchrono_appointment_templates_list { label: "appointment_templates_list" description: "Retrieve or search appointment templates for a doctor's calendar" provider: drchrono method: GET path: "/api/appointment_templates" encoding: json input: { type: "object" properties: { cursor: { type: "string" description: "The pagination cursor value." } doctor: { type: "integer" } office: { type: "integer" } page_size: { type: "integer" description: "Number of results to return per page." } profile: { type: "integer" } } additionalProperties: false } output: { type: "object" description: "Paginated Result" properties: { data: { type: "array" description: "result data" items: { type: "object" description: "Appointment templates are blocks of time during which a doctor usually sees appointments with the same profile. These may have a longer duration then the corresponding profile, in which case they may allow multiple appointments to be booked during that period." required: ["office", "exam_room", "scheduled_time", "profile", "week_days"] properties: { archived: { type: "boolean" description: "Indicats that the object has been soft-deleted and should not be used" } date_end: { type: "string" } date_start: { type: "string" } duration: { type: "integer" description: "Length of an appointment in minutes" } exam_room: { type: "integer" description: "**1-based** index for the exam room" } id: { type: "integer" } office: { type: "integer" } open_slots: { type: "array" description: "Array of time intervals during which the template is available. Only computed if the available and verbose query parameters are passed. Note that only slots long enough to fit an appointment with the corresponding profile are included." items: { type: "object" properties: { end: { type: "string" } start: { type: "string" } } } } profile: { type: "integer" description: "ID of the appointment profile to default to" } scheduled_time: { type: "string" } week_days: { type: "array" description: "Array of integers that indicate week days (`0` = Monday, ..., `6` = Sunday)" items: { type: "integer" } } } } } next: { type: "string" description: "Next Paginated page" } previous: { type: "string" description: "Previous paginated page" } } } }