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

# Update scheduling link booking limits

> Replace a scheduling link's booking limits with the list you send. Limits for periods you leave out are removed, and `[]` removes them all.

> [!NOTE]
>
> Replace `{your-subdomain}` with your workspace’s subdomain. \
> Learn how to find your subdomain in [Workspace subdomain](https://apidocs.neetocal.com/api/workspace-subdomain.md).


## OpenAPI

````yaml bundled/booking-limits.yaml PUT /meetings/{meeting_sid}/booking-limits
openapi: 3.0.3
info:
  title: NeetoCal Booking Limits APIs
  version: 2.0.0
servers:
  - description: NeetoCal APIs
    url: https://{your-subdomain}.neetocal.com/api/external/v2
    variables:
      your-subdomain:
        default: spinkart
        description: >-
          Replace **spinkart** with your [workspace's
          subdomain](/api/workspace-subdomain).
security: []
tags:
  - name: Booking limits
    description: >-
      APIs to read and set how many bookings a team member or a scheduling link
      can take.
paths:
  /meetings/{meeting_sid}/booking-limits:
    put:
      tags:
        - Booking limits
      summary: Update scheduling link booking limits
      description: >-
        Replace a scheduling link's booking limits with the list you send.
        Limits for periods you leave out are removed, and `[]` removes them all.
      parameters:
        - $ref: '#/components/parameters/api_key_header'
        - $ref: '#/components/parameters/meeting_sid_param'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - booking_limits
              properties:
                booking_limits:
                  $ref: '#/components/schemas/booking_limits_request'
      responses:
        '200':
          description: OK - Request succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/scheduling_link_booking_limits'
        '404':
          $ref: '#/components/responses/meeting_not_found'
        '422':
          description: >-
            Unprocessable entity - The limits weren't saved and the existing
            limits are kept. This happens when `booking_limits` is missing or
            isn't a list, a `period` isn't `day`, `week`, `month` or `total`, a
            period appears more than once, a day name isn't a day of the week, a
            `limits_by_weekday` entry has no days, or a limit isn't valid, for
            example `limit` and `limits_by_weekday` together,
            `limits_by_weekday` on a period other than `day`, a limit outside 0
            to 9999, or `total` for a team member.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/booking_limits_error'
components:
  parameters:
    api_key_header:
      in: header
      name: X-Api-Key
      description: >-
        Use the X-Api-Key header to provide your workspace API key. Refer to
        [Authentication](/api/authentication) for more information.
      required: true
      schema:
        type: string
    meeting_sid_param:
      in: path
      name: meeting_sid
      description: >
        The unique identifier (SID) of the scheduling link you want to use. You
        can get `sid` in different ways. Visit the scheduling link page and then
        click on "Settings" > "Show SID". That will give you `sid`. You can also
        get this from the response of the [List scheduling
        links](/api/scheduling-links/list) endpoint, where it appears as the
        `sid` property for each scheduling link in the response.
      required: true
      schema:
        type: string
        example: vj5pgkh
  schemas:
    booking_limits_request:
      type: array
      description: >-
        The complete set of booking limits, at most one per period. It replaces
        the existing limits, so a period you leave out is removed. Send `[]` to
        remove all limits.
      items:
        oneOf:
          - title: Single limit
            type: object
            required:
              - period
              - limit
            properties:
              period:
                type: string
                enum:
                  - day
                  - week
                  - month
                  - total
                description: >-
                  Period the limit applies to. `total` is only for scheduling
                  links.
              limit:
                type: integer
                minimum: 0
                maximum: 9999
                description: Maximum number of bookings in the period.
          - title: Limits by weekday
            type: object
            required:
              - period
              - limits_by_weekday
            properties:
              period:
                type: string
                enum:
                  - day
                description: Must be `day`.
              limits_by_weekday:
                type: array
                minItems: 1
                description: >-
                  Different daily limits for different days of the week. Day
                  names aren't case-sensitive.
                items:
                  $ref: '#/components/schemas/weekday_limit'
      example:
        - period: day
          limits_by_weekday:
            - days:
                - Monday
                - Tuesday
                - Wednesday
              limit: 3
            - days:
                - Friday
              limit: 1
        - period: week
          limit: 10
    scheduling_link_booking_limits:
      type: object
      properties:
        meeting_sid:
          type: string
          description: SID of the scheduling link.
          example: vj5pgkh
        booking_limits:
          type: array
          items:
            $ref: '#/components/schemas/booking_limit'
      example:
        meeting_sid: vj5pgkh
        booking_limits:
          - period: week
            limit: 10
            limits_by_weekday: []
          - period: total
            limit: 50
            limits_by_weekday: []
    booking_limits_error:
      type: object
      properties:
        error:
          type: string
          example: Give at most one limit per period; week appears more than once
    weekday_limit:
      type: object
      required:
        - days
        - limit
      properties:
        days:
          type: array
          minItems: 1
          items:
            type: string
            enum:
              - Sunday
              - Monday
              - Tuesday
              - Wednesday
              - Thursday
              - Friday
              - Saturday
          description: >-
            Days of the week this limit applies to. A day can appear in only one
            entry.
          example:
            - Monday
            - Tuesday
        limit:
          type: integer
          minimum: 0
          maximum: 9999
          description: Maximum number of bookings on each of these days.
          example: 2
    booking_limit:
      type: object
      properties:
        period:
          type: string
          enum:
            - day
            - week
            - month
            - total
          description: >-
            Period the limit applies to. `total` caps all bookings of a
            scheduling link and isn't available for team members.
          example: week
        limit:
          type: integer
          nullable: true
          minimum: 0
          maximum: 9999
          description: >-
            Maximum number of bookings in the period. Null when
            `limits_by_weekday` is set.
          example: 10
        limits_by_weekday:
          type: array
          description: >-
            Different daily limits for different days of the week. Only for the
            `day` period, and used instead of `limit`. Empty when the period has
            a single limit.
          items:
            $ref: '#/components/schemas/weekday_limit'
  responses:
    meeting_not_found:
      description: Not Found - The scheduling link does not exist
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Meeting does not exist.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.