{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zeeg-me/json-schema/zeeg-me-scheduling-page-create-schema.json",
  "title": "SchedulingPageCreate",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/zeeg-me-api-openapi.yml#/components/schemas/SchedulingPageCreate",
  "type": "object",
  "required": [
    "type",
    "title"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "ONE_ON_ONE",
        "GROUP",
        "ROUND_ROBIN",
        "COLLECTIVE"
      ],
      "description": "`ONE_ON_ONE` books the page owner. `GROUP` books the page owner too, and lets up to `maxActiveInvitees` invitees book the same time slot; it takes one duration and at most one location. `ROUND_ROBIN` books one of the hosts, `COLLECTIVE` books every host at once. A group page needs a plan that includes group pages."
    },
    "schedulingMode": {
      "type": "string",
      "enum": [
        "availability",
        "fixed_dates"
      ],
      "default": "availability",
      "description": "Group pages only, and fixed once the page exists. `fixed_dates` makes an event page for a workshop, webinar, course or meetup, bookable only on the dates you then save with `POST /event-types/{uuid}/sessions`; it has none until you do, and `maxActiveInvitees` is each date's seat limit. Any other type answers 422 for `fixed_dates`."
    },
    "title": {
      "type": "string",
      "maxLength": 100
    },
    "slug": {
      "type": "string",
      "description": "The last part of the booking link. Defaults to one made from the title. A round robin or collective page without `teamId` always gets a generated slug."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "HTML shown on the booking page, up to 4000 visible characters."
    },
    "language": {
      "type": "string",
      "enum": [
        "en",
        "de",
        "de-du",
        "nl",
        "fi",
        "es",
        "fr",
        "pl",
        "da",
        "sv",
        "it"
      ],
      "description": "The language of the booking page and of the emails its invitees get: `en` English, `de` German addressing the invitee formally (Sie), `de-du` German addressing the invitee informally (du), `nl` Dutch, `fi` Finnish, `es` Spanish, `fr` French, `pl` Polish, `da` Danish, `sv` Swedish, `it` Italian. Defaults to your own language. Any other value answers 422."
    },
    "eventDurations": {
      "type": "array",
      "minItems": 1,
      "maxItems": 5,
      "items": {
        "$ref": "#/$defs/SchedulingPageDurationInput"
      },
      "description": "Defaults to one 30-minute duration."
    },
    "locations": {
      "type": "array",
      "maxItems": 10,
      "items": {
        "$ref": "#/$defs/SchedulingPageLocationInput"
      }
    },
    "teamId": {
      "type": "string",
      "description": "The team that owns the page, by its id or slug. A team outside your workspace answers 422. Without it a one-on-one page belongs to you, and a round robin or collective page is shared across the workspace."
    },
    "hosts": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/SchedulingPageHostInput"
      },
      "description": "Round robin and collective only, and required unless `allMembersIn` is true. With `teamId` every host must be a member of that team."
    },
    "allMembersIn": {
      "type": "boolean",
      "description": "Round robin and collective pages of a team only. Every team member is a host, now and as the team changes."
    },
    "maxActiveInvitees": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "description": "How many invitees one time slot takes. Required for a group page, which takes 2 or more. On a round robin page more than 1 lets several invitees book the same slot with the same host; defaults to 1. Other types ignore it."
    },
    "isActive": {
      "type": "boolean",
      "description": "Defaults to true. When your plan allows no more active one-on-one or group pages, the page is created inactive and the response reads `isActive` false."
    },
    "questionSettings": {
      "allOf": [
        {
          "$ref": "#/$defs/SchedulingPageQuestionsReplace"
        }
      ],
      "description": "The booking form, in the body `PUT /event-types/{uuid}/questions` takes. Every question is new, so none carries an `id`. Replaces the two default questions a new page starts with; without it the page keeps them. A refusal is keyed under this name, for example `questionSettings.questions.0.label`."
    },
    "notificationSettings": {
      "allOf": [
        {
          "$ref": "#/$defs/SchedulingPageNotificationsUpdate"
        }
      ],
      "description": "The notification settings, in the body `PATCH /event-types/{uuid}/notifications` takes; a setting left out keeps the default a new page gets. A refusal is keyed under this name, for example `notificationSettings.customNotifications.inviteeConfirmation.body`."
    }
  },
  "$defs": {
    "SchedulingPageCustomNotifications": {
      "type": "object",
      "description": "Own texts per notification. Tags are written as `:tag`, for example `:invitee_full_name`, `:scheduling_page_name`, `:event_start_date`, `:event_start_time`, `:location`, `:meeting_link`, `:cancellation_link`, `:rescheduling_link` and `:questions_and_answers`; cancellation texts also take `:canceled_by` and `:cancellation_reason`.",
      "properties": {
        "inviteeConfirmation": {
          "description": "The email the invitee gets when they book.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        },
        "inviteeCancellation": {
          "description": "The email the invitee gets when the booking is cancelled.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        },
        "hostConfirmation": {
          "description": "The email the hosts get for a new booking.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        },
        "hostCancellation": {
          "description": "The email the hosts get when a booking is cancelled.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        },
        "inviteeInvitation": {
          "description": "The calendar invitation. The subject is the event title, the body its description.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        },
        "hubspot": {
          "description": "The meeting note written to HubSpot for a booking.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        },
        "hubspot_group": {
          "description": "The HubSpot note for a booking on a page with several invitees per slot.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        },
        "pipedrive": {
          "description": "The meeting note written to Pipedrive for a booking.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        },
        "pipedrive_group": {
          "description": "The Pipedrive note for a booking on a page with several invitees per slot.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        },
        "salesforce": {
          "description": "The meeting note written to Salesforce for a booking.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        },
        "salesforce_group": {
          "description": "The Salesforce note for a booking on a page with several invitees per slot.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        },
        "inviteeRegistrationPending": {
          "description": "Event pages only. The email the invitee gets when their registration awaits approval.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        },
        "hostRegistrationApproval": {
          "description": "Event pages only. The email the hosts get to approve or decline a registration.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        },
        "inviteeRegistrationDeclined": {
          "description": "Event pages only. The email the invitee gets when the host declines their registration. Also takes `:decline_message`.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        },
        "inviteeRegistrationExpired": {
          "description": "Event pages only. The email the invitee gets when their registration expires unanswered. Also takes `:next_session_date`.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageNotificationText"
            }
          ]
        }
      }
    },
    "SchedulingPageDurationInput": {
      "type": "object",
      "required": [
        "minutes",
        "default"
      ],
      "properties": {
        "minutes": {
          "type": "integer",
          "minimum": 1,
          "maximum": 720
        },
        "default": {
          "type": "boolean",
          "description": "The duration the booking page preselects. Exactly one entry is the default."
        }
      }
    },
    "SchedulingPageHostInput": {
      "type": "object",
      "required": [
        "uuid"
      ],
      "properties": {
        "uuid": {
          "type": "string",
          "description": "The member's `uuid`, as `hosts[].uuid` of a fetched scheduling page or `GET /organizations/users` returns it."
        },
        "priority": {
          "type": "integer",
          "minimum": 1,
          "maximum": 4,
          "description": "Round robin only. How often the host is picked compared with the others, 1 lowest to 4 highest. Defaults to 2 on create; on update a host already on the page keeps its own."
        }
      }
    },
    "SchedulingPageLocationInput": {
      "type": "object",
      "description": "One location invitees can pick, in the shape `locations` has on a fetched scheduling page. The options each type needs:\n\n- `IN_PERSON`: `options.address` (required).\n- `PHONE_CALL`: `options.callType` (required). `I_WILL_CALL` means the host calls the invitee, so the booking asks for the invitee's phone number. `INVITEE_SHOULD_CALL` means the invitee calls the host and needs `options.phoneNumber` (up to 15 characters).\n- `CUSTUM`: `options.custom` (required), the text shown to the invitee.\n- `WHATSAPP`, `WHEREBY`, `JITSI`: `options.link` (required), the meeting link.\n- `GOOGLE_MEET`, `MICROSOFT_TEAMS`, `MICROSOFT_SKYPE`, `ZOOM`, `WEBEX`, `ALFAVIEW`, `DEMODESK`: no options; the meeting is created through the host's connected integration.\n\n`IN_PERSON`, `PHONE_CALL` and `CUSTUM` also take an optional `options.details` note (up to 250 characters).",
      "required": [
        "location"
      ],
      "properties": {
        "location": {
          "type": "string",
          "enum": [
            "IN_PERSON",
            "PHONE_CALL",
            "GOOGLE_MEET",
            "MICROSOFT_TEAMS",
            "MICROSOFT_SKYPE",
            "ZOOM",
            "WEBEX",
            "DEMODESK",
            "ALFAVIEW",
            "CUSTUM",
            "WHATSAPP",
            "WHEREBY",
            "JITSI"
          ]
        },
        "options": {
          "type": "object",
          "properties": {
            "address": {
              "type": "string"
            },
            "callType": {
              "type": "string",
              "enum": [
                "I_WILL_CALL",
                "INVITEE_SHOULD_CALL"
              ]
            },
            "phoneNumber": {
              "type": "string"
            },
            "custom": {
              "type": "string"
            },
            "link": {
              "type": "string"
            },
            "details": {
              "type": "string"
            }
          }
        },
        "position": {
          "type": "integer",
          "minimum": 0,
          "description": "Order in which invitees see the locations."
        }
      }
    },
    "SchedulingPageNotificationText": {
      "type": "object",
      "required": [
        "subject",
        "body"
      ],
      "properties": {
        "subject": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 3000,
          "description": "Simple HTML (p, br, b, strong, i, em, u, a, ul, ol, li, blockquote, code, span, div, table). The lengths count text without markup."
        },
        "isModerationValid": {
          "type": "boolean",
          "readOnly": true,
          "description": "false when moderation rejected this text. It is not sent, and the default text goes out instead."
        }
      }
    },
    "SchedulingPageNotificationsUpdate": {
      "type": "object",
      "description": "Every field is optional; a field left out keeps its value.",
      "properties": {
        "inviteeConfirmation": {
          "type": "string",
          "enum": [
            "calendar_invitation",
            "email",
            "none"
          ],
          "description": "A page with several invitees per slot stores `email` for `calendar_invitation`. `none` answers 422 on an Event page that approves registrations, and while a date that has not started still holds a registration awaiting the host's decision, approval switched off or not, because email is the only way an invitee learns the host's decision."
        },
        "addEventLinkNotif": {
          "type": "boolean",
          "description": "Removing the links needs a plan that allows it; on any other plan they stay in."
        },
        "privateCalendarEvent": {
          "type": "boolean"
        },
        "cancelOnInviteeDecline": {
          "type": "boolean"
        },
        "autoAcceptInvitation": {
          "type": "boolean"
        },
        "excludePII": {
          "type": "boolean"
        },
        "excludeHostEmails": {
          "type": "boolean"
        },
        "calendarAdditionalAttendees": {
          "type": "array",
          "maxItems": 3,
          "items": {
            "type": "string",
            "format": "email"
          },
          "description": "Replaces the list; an empty list clears it. Each new address is asked to confirm before it receives anything. Needs a plan with notification forwarding; on any other plan the list is stored empty."
        },
        "customNotifications": {
          "description": "Changes only the notifications it names. A subject or body left out keeps its stored text, so an email that has no text of its own yet needs both, or the call answers 422. A subject and body both left empty, or equal to the default, go back to the default text. Needs a plan with custom notifications.",
          "allOf": [
            {
              "$ref": "#/$defs/SchedulingPageCustomNotifications"
            }
          ]
        }
      }
    },
    "SchedulingPageQuestionInput": {
      "type": "object",
      "required": [
        "label",
        "type",
        "required"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "The id of a question of this page to keep and update. Leave it out to add a question."
        },
        "label": {
          "type": "string",
          "maxLength": 1024
        },
        "type": {
          "type": "string",
          "enum": [
            "TEXT_INPUT",
            "TEXTAREA",
            "SELECT",
            "RADIO_INPUT",
            "CHECKBOX",
            "DATE_INPUT",
            "PHONE_NUMBER",
            "CRM_ATTRIBUTE"
          ]
        },
        "required": {
          "type": "boolean"
        },
        "active": {
          "type": "boolean",
          "default": true,
          "description": "false hides the question without deleting it."
        },
        "choices": {
          "type": "array",
          "minItems": 1,
          "maxItems": 20,
          "items": {
            "type": "string"
          },
          "description": "Required for SELECT, RADIO_INPUT and CHECKBOX; ignored for other types."
        },
        "crmAttribute": {
          "type": "object",
          "description": "Required for CRM_ATTRIBUTE. Each attribute may back one question of the page.",
          "required": [
            "objectSlug",
            "attributeSlug"
          ],
          "properties": {
            "objectSlug": {
              "type": "string"
            },
            "attributeSlug": {
              "type": "string"
            },
            "overrideValue": {
              "type": "boolean",
              "default": false
            }
          }
        }
      }
    },
    "SchedulingPageQuestionsReplace": {
      "type": "object",
      "required": [
        "questions"
      ],
      "properties": {
        "questions": {
          "type": "array",
          "description": "The complete list in display order. A stored question the list leaves out is deleted; an empty list deletes every question.",
          "items": {
            "$ref": "#/$defs/SchedulingPageQuestionInput"
          }
        },
        "askForPhoneNumber": {
          "type": "boolean",
          "description": "Left out, it keeps its value."
        },
        "allowAdditionalGuests": {
          "type": "boolean",
          "description": "Left out, it keeps its value. Has no effect while the workspace requires invitee email verification."
        },
        "nameFormat": {
          "type": "string",
          "enum": [
            "FULL_NAME",
            "SEPARATED",
            "SEPARATED_WITH_SALUTATION"
          ],
          "description": "Left out, it keeps its value."
        }
      }
    }
  }
}