> ## Documentation Index
> Fetch the complete documentation index at: https://developer.vetcove.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List calendar designation blocks

> Returns the designation blocks for a clinic's calendar within a date range. The blocks are sorted by datetime in ascending order.

A **calendar designation block** represents a time window on a resource's schedule that is designated for specific appointment kinds only (e.g., a block reserved exclusively for surgeries).



## OpenAPI

````yaml get /ext/v2/calendar-designation-blocks/
openapi: 3.1.0
info:
  description: ''
  title: NinjaAPI
  version: 2.0.0
servers:
  - url: https://connect.vetcove.com/
security: []
paths:
  /ext/v2/calendar-designation-blocks/:
    get:
      tags:
        - Scheduler
      summary: List calendar designation blocks
      description: >-
        Returns the designation blocks for a clinic's calendar within a date
        range. The blocks are sorted by datetime in ascending order.


        A **calendar designation block** represents a time window on a
        resource's schedule that is designated for specific appointment kinds
        only (e.g., a block reserved exclusively for surgeries).
      operationId: calendar_designation_blocks_list
      parameters:
        - description: Required. The ID of the calendar to fetch designation blocks for
          in: query
          name: calendar_id
          required: true
          schema:
            description: Required. The ID of the calendar to fetch designation blocks for
            title: Calendar Id
            type: integer
        - description: >-
            Required. Start date for fetching designation blocks. This will be
            translated to a datetime representing the start of the day in the
            clinic's timezone. Must be no more than 30 days before `end_date`.
            Format: YYYY-MM-DD
          in: query
          name: start_date
          required: true
          schema:
            description: >-
              Required. Start date for fetching designation blocks. This will be
              translated to a datetime representing the start of the day in the
              clinic's timezone. Must be no more than 30 days before `end_date`.
              Format: YYYY-MM-DD
            title: Start Date
            type: string
        - description: >-
            Required. End date for fetching designation blocks. This will be
            translated to a datetime representing the end of the day in the
            clinic's timezone. Must be no more than 30 days after `start_date`.
            Format: YYYY-MM-DD
          in: query
          name: end_date
          required: true
          schema:
            description: >-
              Required. End date for fetching designation blocks. This will be
              translated to a datetime representing the end of the day in the
              clinic's timezone. Must be no more than 30 days after
              `start_date`. Format: YYYY-MM-DD
            title: End Date
            type: string
        - description: >-
            Optional. The ID of the calendar resource to fetch designation
            blocks for
          in: query
          name: calendar_resource_id
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: >-
              Optional. The ID of the calendar resource to fetch designation
              blocks for
            title: Calendar Resource Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ExternalCalendarDesignationBlockSchemaList
          description: OK
      security:
        - ExternalAPIAuth: []
components:
  schemas:
    ExternalCalendarDesignationBlockSchemaList:
      properties:
        data:
          description: A single page of data contained within this list.
          items:
            $ref: '#/components/schemas/ExternalCalendarDesignationBlockSchema'
          title: Data
          type: array
        has_more:
          default: false
          description: Whether there are more pages or data in this list.
          title: Has More
          type: boolean
        next_page:
          description: A URL linking to the next page of this list.
          title: Next Page
          type: string
        type:
          default: list
          description: Type of this object. Always `list`.
          title: Type
          type: string
      required:
        - data
        - next_page
      title: ExternalCalendarDesignationBlockSchemaList
      type: object
    ExternalCalendarDesignationBlockSchema:
      properties:
        appointment_kind_ids:
          default: []
          description: The ID's of the appointment kinds allowed for this designation block
          items:
            type: integer
          title: Appointment Kind Ids
          type: array
        calendar_resource_id:
          description: The ID of the calendar resource this designation belongs to.
          title: Calendar Resource Id
          type: integer
        end_datetime:
          description: The ending datetime of this instance of the designation, in UTC.
          format: date-time
          title: End Datetime
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
          description: The name of this designation.
          title: Name
        start_datetime:
          description: The starting datetime of this instance of the designation, in UTC.
          format: date-time
          title: Start Datetime
          type: string
      required:
        - calendar_resource_id
        - name
        - start_datetime
        - end_datetime
      title: ExternalCalendarDesignationBlockSchema
      type: object
  securitySchemes:
    ExternalAPIAuth:
      scheme: bearer
      type: http

````