{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trycaly-com/json-schema/trycaly-com-create-recurring-booking-input-2024-08-13-schema.json",
  "title": "CreateRecurringBookingInput_2024_08_13",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trycaly-com-openapi.yml#/components/schemas/CreateRecurringBookingInput_2024_08_13",
  "type": "object",
  "properties": {
    "start": {
      "type": "string",
      "description": "The start time of the booking in ISO 8601 format in UTC timezone."
    },
    "attendee": {
      "description": "The attendee's details.",
      "allOf": [
        {
          "$ref": "#/$defs/CreateBookingAttendee"
        }
      ]
    },
    "bookingFieldsResponses": {
      "type": "object",
      "description": "Booking field responses consisting of an object with booking field slug as keys and user response as values for custom booking fields added by you."
    },
    "eventTypeId": {
      "type": "number",
      "description": "The ID of the event type that is booked. Required unless eventTypeSlug and username are provided as an alternative to identifying the event type."
    },
    "eventTypeSlug": {
      "type": "string",
      "description": "The slug of the event type. Required along with username / teamSlug and optionally organizationSlug if eventTypeId is not provided."
    },
    "username": {
      "type": "string",
      "description": "The username of the event owner. Required along with eventTypeSlug and optionally organizationSlug if eventTypeId is not provided."
    },
    "teamSlug": {
      "type": "string",
      "description": "Team slug for team that owns event type for which slots are fetched. Required along with eventTypeSlug and optionally organizationSlug if the team is part of organization"
    },
    "organizationSlug": {
      "type": "string",
      "description": "The organization slug. Optional, only used when booking with eventTypeSlug + username or eventTypeSlug + teamSlug."
    },
    "guests": {
      "description": "An optional list of guest emails attending the event.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "meetingUrl": {
      "type": "string",
      "description": "Deprecated - use 'location' instead. Meeting URL just for this booking. Displayed in email and calendar event. If not provided then cal video link will be generated.",
      "deprecated": true
    },
    "location": {
      "description": "One of the event type locations. If instead of passing one of the location objects as required by schema you are still passing a string please use an object.",
      "oneOf": [
        {
          "$ref": "#/$defs/BookingInputAddressLocation_2024_08_13"
        },
        {
          "$ref": "#/$defs/BookingInputAttendeeAddressLocation_2024_08_13"
        },
        {
          "$ref": "#/$defs/BookingInputAttendeeDefinedLocation_2024_08_13"
        },
        {
          "$ref": "#/$defs/BookingInputAttendeePhoneLocation_2024_08_13"
        },
        {
          "$ref": "#/$defs/BookingInputIntegrationLocation_2024_08_13"
        },
        {
          "$ref": "#/$defs/BookingInputLinkLocation_2024_08_13"
        },
        {
          "$ref": "#/$defs/BookingInputPhoneLocation_2024_08_13"
        },
        {
          "$ref": "#/$defs/BookingInputOrganizersDefaultAppLocation_2024_08_13"
        }
      ]
    },
    "metadata": {
      "type": "object",
      "description": "You can store any additional data you want here. Metadata must have at most 50 keys, each key up to 40 characters, and string values up to 500 characters."
    },
    "lengthInMinutes": {
      "type": "number",
      "description": "If it is an event type that has multiple possible lengths that attendee can pick from, you can pass the desired booking length here.\n    If not provided then event type default length will be used for the booking."
    },
    "routing": {
      "description": "Routing information from routing forms that determined the booking assignment. Both responseId and teamMemberIds are required if provided.",
      "allOf": [
        {
          "$ref": "#/$defs/Routing"
        }
      ]
    },
    "emailVerificationCode": {
      "type": "string",
      "description": "Email verification code required when event type has email verification enabled."
    },
    "recurrenceCount": {
      "type": "number",
      "description": "The number of recurrences. If not provided then event type recurrence count will be used. Can't be more than\n    event type recurrence count"
    }
  },
  "required": [
    "start",
    "attendee"
  ],
  "$defs": {
    "BookingInputAddressLocation_2024_08_13": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "only allowed value for type is `address` - it refers to address defined by the organizer."
        }
      },
      "required": [
        "type"
      ]
    },
    "BookingInputAttendeeAddressLocation_2024_08_13": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "only allowed value for type is `attendeeAddress`"
        },
        "address": {
          "type": "string"
        }
      },
      "required": [
        "type",
        "address"
      ]
    },
    "BookingInputAttendeeDefinedLocation_2024_08_13": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "only allowed value for type is `attendeeDefined`"
        },
        "location": {
          "type": "string"
        }
      },
      "required": [
        "type",
        "location"
      ]
    },
    "BookingInputAttendeePhoneLocation_2024_08_13": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "only allowed value for type is `attendeePhone`"
        },
        "phone": {
          "type": "string"
        }
      },
      "required": [
        "type",
        "phone"
      ]
    },
    "BookingInputIntegrationLocation_2024_08_13": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "only allowed value for type is `integration`"
        },
        "integration": {
          "type": "string",
          "enum": [
            "cal-video",
            "google-meet",
            "zoom",
            "whereby-video",
            "whatsapp-video",
            "webex-video",
            "telegram-video",
            "tandem",
            "sylaps-video",
            "skype-video",
            "sirius-video",
            "signal-video",
            "shimmer-video",
            "salesroom-video",
            "roam-video",
            "riverside-video",
            "ping-video",
            "office365-video",
            "mirotalk-video",
            "jitsi",
            "jelly-video",
            "jelly-conferencing",
            "huddle",
            "facetime-video",
            "element-call-video",
            "eightxeight-video",
            "discord-video",
            "demodesk-video",
            "campfire-video"
          ]
        }
      },
      "required": [
        "type",
        "integration"
      ]
    },
    "BookingInputLinkLocation_2024_08_13": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "only allowed value for type is `link` - it refers to link defined by the organizer."
        }
      },
      "required": [
        "type"
      ]
    },
    "BookingInputOrganizersDefaultAppLocation_2024_08_13": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "only available for team event types and the only allowed value for type is `organizersDefaultApp` - it refers to the default app defined by the organizer."
        }
      },
      "required": [
        "type"
      ]
    },
    "BookingInputPhoneLocation_2024_08_13": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "only allowed value for type is `phone` - it refers to phone defined by the organizer."
        }
      },
      "required": [
        "type"
      ]
    },
    "CreateBookingAttendee": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the attendee."
        },
        "timeZone": {
          "type": "string",
          "description": "The time zone of the attendee."
        },
        "phoneNumber": {
          "type": "string",
          "description": "The phone number of the attendee in international format."
        },
        "language": {
          "type": "string",
          "enum": [
            "ar",
            "ca",
            "de",
            "es",
            "eu",
            "he",
            "id",
            "ja",
            "lv",
            "pl",
            "ro",
            "sr",
            "th",
            "vi",
            "az",
            "cs",
            "el",
            "es-419",
            "fi",
            "hr",
            "it",
            "km",
            "nl",
            "pt",
            "ru",
            "sv",
            "tr",
            "zh-CN",
            "bg",
            "da",
            "en",
            "et",
            "fr",
            "hu",
            "iw",
            "ko",
            "no",
            "pt-BR",
            "sk",
            "ta",
            "uk",
            "zh-TW",
            "bn"
          ],
          "description": "The preferred language of the attendee. Used for booking confirmation.",
          "default": "en"
        },
        "email": {
          "type": "string",
          "description": "The email of the attendee."
        }
      },
      "required": [
        "name",
        "timeZone"
      ]
    },
    "Routing": {
      "type": "object",
      "properties": {
        "responseId": {
          "type": "number",
          "description": "The ID of the routing form response that determined this booking assignment."
        },
        "teamMemberIds": {
          "description": "Array of team member IDs that were routed to handle this booking.",
          "type": "array",
          "items": {
            "type": "number"
          }
        },
        "teamMemberEmail": {
          "type": "string",
          "description": "The email of the team member assigned to handle this booking."
        },
        "skipContactOwner": {
          "type": "boolean",
          "description": "Whether to skip contact owner assignment from CRM integration."
        },
        "crmAppSlug": {
          "type": "string",
          "description": "The CRM application slug for integration."
        },
        "crmOwnerRecordType": {
          "type": "string",
          "description": "The CRM owner record type for contact assignment."
        }
      },
      "required": [
        "responseId",
        "teamMemberIds"
      ]
    }
  }
}