> ## 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 team member booking limits

> Replace a team member'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 /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:
  /booking-limits:
    put:
      tags:
        - Booking limits
      summary: Update team member booking limits
      description: >-
        Replace a team member'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'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - email
                - booking_limits
              properties:
                email:
                  type: string
                  description: Email of the team member.
                  example: oliver@example.com
                booking_limits:
                  $ref: '#/components/schemas/booking_limits_request'
      responses:
        '200':
          description: OK - Request succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/team_member_booking_limits'
        '404':
          description: Not found - No team member with this email.
        '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
  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
    team_member_booking_limits:
      type: object
      properties:
        email:
          type: string
          description: Email of the team member.
          example: oliver@example.com
        booking_limits:
          type: array
          items:
            $ref: '#/components/schemas/booking_limit'
      example:
        email: oliver@example.com
        booking_limits:
          - period: day
            limit: null
            limits_by_weekday:
              - days:
                  - Monday
                  - Tuesday
                  - Wednesday
                limit: 3
              - days:
                  - Friday
                limit: 1
          - period: week
            limit: 10
            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'

````

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