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

# SetVoiceAgentBookingRulesAPI changes the booking rules of the Cal.com event


> type a phone line books on and answers with what Cal.com holds after.




## OpenAPI

````yaml /api/openapi.json put /v1/voice/agents/{slug}/booking-rules
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, experiments, and bounded outreach.
    Authenticate with a Bearer API key (erdo_api_...) or scoped token
    (erdo_token_...).
  version: '2026-11-25'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/voice/agents/{slug}/booking-rules:
    put:
      summary: >
        SetVoiceAgentBookingRulesAPI changes the booking rules of the Cal.com
        event
      description: |
        type a phone line books on and answers with what Cal.com holds after.
      operationId: PUT:mcp.SetVoiceAgentBookingRulesAPI
      parameters:
        - allowEmptyValue: true
          explode: false
          in: path
          name: slug
          required: true
          schema:
            type: string
          style: simple
      requestBody:
        content:
          application/json:
            schema:
              properties:
                after_buffer_minutes:
                  format: int64
                  type: integer
                  minimum: 0
                before_buffer_minutes:
                  format: int64
                  type: integer
                  minimum: 0
                meeting_reminders:
                  type: boolean
                minimum_notice_minutes:
                  format: int64
                  type: integer
                  minimum: 0
                  maximum: 86400
                working_hours:
                  $ref: '#/components/schemas/mcp.VoiceWorkingHoursInput'
              type: object
              minProperties: 1
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  deployment:
                    $ref: '#/components/schemas/voice.BookingRulesDeployment'
                  event_ref:
                    type: string
                  provider:
                    type: string
                  provider_label:
                    type: string
                  rules:
                    $ref: '#/components/schemas/voice.SchedulingBookingRules'
                  supported:
                    description: >
                      Erdo can read and change (Google Calendar, Calendly);
                      Rules is then empty.
                    title: >
                      Supported is false for providers whose event types have no
                      booking rules
                    type: boolean
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    mcp.VoiceWorkingHoursInput:
      properties:
        time_zone:
          type: string
        windows:
          items:
            $ref: '#/components/schemas/mcp.VoiceWorkingHoursWindowInput'
          type: array
          minItems: 1
          maxItems: 28
      title: |
        VoiceWorkingHoursInput replaces the event type's weekly hours.
      type: object
      required:
        - windows
    voice.BookingRulesDeployment:
      properties:
        agent:
          title: |
            Agent is the phone line's slug; empty for a widget.
          type: string
        booking_enabled:
          description: |
            live on the event type either way.
          title: >
            BookingEnabled says whether the deployment currently books. The
            rules
          type: boolean
        books_through_agent:
          description: >
            line sharing its voice agent (the widget's own booking is off and
            the line's is on): the slug of that line, whose event type these
            rules are.
          title: >
            BooksThroughAgent is set when a widget books on the settings of the
            phone
          type: string
        kind:
          title: |
            Kind is "widget" or "phone_line".
          type: string
        name:
          type: string
        widget:
          title: |
            Widget is the widget's public key; empty for a phone line.
          type: string
      title: >
        BookingRulesDeployment is the deployment whose event type was read or
        changed.
      type: object
    voice.SchedulingBookingRules:
      properties:
        after_buffer_minutes:
          format: int64
          type: integer
        before_buffer_minutes:
          format: int64
          type: integer
        meeting_reminders:
          $ref: '#/components/schemas/voice.SchedulingMeetingReminders'
        minimum_notice_minutes:
          format: int64
          type: integer
        working_hours:
          $ref: '#/components/schemas/voice.SchedulingWorkingHours'
      title: >
        SchedulingBookingRules is an event type's booking rules as the settings
        show

        them.
      type: object
    mcp.VoiceWorkingHoursWindowInput:
      properties:
        days:
          items:
            type: string
            enum:
              - Monday
              - Tuesday
              - Wednesday
              - Thursday
              - Friday
              - Saturday
              - Sunday
          type: array
          minItems: 1
        end_time:
          type: string
          pattern: ^([01]\d|2[0-3]):[0-5]\d$
        start_time:
          type: string
          pattern: ^([01]\d|2[0-3]):[0-5]\d$
      title: |
        VoiceWorkingHoursWindowInput is one weekly window of working hours.
      type: object
      required:
        - days
        - start_time
        - end_time
    voice.SchedulingMeetingReminders:
      properties:
        edit_url:
          title: |
            EditURL is where the admin changes the reminders in the provider.
          type: string
        reminders:
          items:
            $ref: '#/components/schemas/voice.SchedulingMeetingReminder'
          type: array
        status:
          title: |
            Status is "on", "off" or "unreadable" (unknown, not "off").
          type: string
      title: >
        SchedulingMeetingReminders says whether attendees are reminded before
        the

        meeting.
      type: object
    voice.SchedulingWorkingHours:
      properties:
        date_overrides:
          format: int64
          title: |
            DateOverrides counts one-off dates with different hours.
          type: integer
        edit_url:
          title: |
            EditURL is where the admin changes these hours in the provider.
          type: string
        is_default:
          type: boolean
        schedule_name:
          type: string
        shared:
          description: >
            (or that could not be checked): saving hours then gives this event
            type its own schedule, copied from this one's date overrides.
          title: |
            Shared is true when other event types book against this schedule too
          type: boolean
        status:
          description: |
            booked) or "unreadable" (the hours are unknown, not empty).
          title: >
            Status is "set", "none" (the account has no schedule, so nothing can
            be
          type: string
        time_zone:
          type: string
        windows:
          items:
            $ref: '#/components/schemas/voice.SchedulingWorkingHoursWindow'
          type: array
      title: >
        SchedulingWorkingHours is the availability schedule an event type books
        against.
      type: object
    voice.SchedulingMeetingReminder:
      description: |
        before the meeting.
      properties:
        all_event_types:
          description: |
            account; turning reminders off then has to happen in the provider.
          title: |
            AllEventTypes is true when it applies to every event type in the
          type: boolean
        channels:
          items:
            type: string
          title: |
            Channels are "email", "sms" and/or "whatsapp".
          type: array
        minutes_before:
          format: int64
          type: integer
        name:
          title: |
            Name is the provider's name for it (the Cal.com workflow name).
          type: string
      title: >
        SchedulingMeetingReminder is one reminder the provider sends the
        attendee
      type: object
    voice.SchedulingWorkingHoursWindow:
      properties:
        days:
          items:
            type: string
          title: |
            Days are full English weekday names ("Monday"…).
          type: array
        end_time:
          type: string
        start_time:
          title: |
            StartTime and EndTime are 24-hour HH:MM in the schedule's time zone.
          type: string
      title: |
        SchedulingWorkingHoursWindow is one weekly window of working hours.
      type: object
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````

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