{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loopgantt-com/json-schema/loopgantt-com-create-meeting-request-schema.json",
  "title": "CreateMeetingRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loopgantt-com-openapi.json#/components/schemas/CreateMeetingRequest",
  "type": "object",
  "required": [
    "title",
    "startsAt",
    "endsAt",
    "tz"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Optional client id; repeating it replays the create"
    },
    "title": {
      "type": "string",
      "maxLength": 200
    },
    "startsAt": {
      "type": "string",
      "format": "date-time"
    },
    "endsAt": {
      "type": "string",
      "format": "date-time",
      "description": "5 minutes to 24 hours after startsAt"
    },
    "tz": {
      "type": "string",
      "description": "IANA time zone, e.g. America/Lima"
    },
    "notes": {
      "type": "string",
      "maxLength": 4000
    },
    "location": {
      "type": "string",
      "maxLength": 500
    },
    "recurrence": {
      "oneOf": [
        {
          "$ref": "#/$defs/MeetingRecurrence"
        },
        {
          "type": "null"
        }
      ]
    },
    "projectId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "taskId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "A task of projectId (needs projectId)"
    },
    "memberIds": {
      "type": "array",
      "maxItems": 50,
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "description": "Members of the project to invite"
    },
    "guestEmails": {
      "type": "array",
      "maxItems": 10,
      "items": {
        "type": "string",
        "format": "email"
      },
      "description": "Outside guests (paid plan)"
    },
    "videoProvider": {
      "type": "string",
      "enum": [
        "none",
        "google_meet",
        "teams",
        "zoom",
        "custom"
      ],
      "description": "Omit for the organizer's default. google_meet, teams and zoom need that connection on the account (422 VIDEO_UNAVAILABLE otherwise); custom = the link in location."
    }
  },
  "$defs": {
    "MeetingRecurrence": {
      "type": "object",
      "required": [
        "freq"
      ],
      "properties": {
        "freq": {
          "type": "string",
          "enum": [
            "DAILY",
            "WEEKLY",
            "MONTHLY",
            "YEARLY"
          ]
        },
        "interval": {
          "type": "integer",
          "minimum": 1,
          "maximum": 99,
          "default": 1
        },
        "byday": {
          "type": "array",
          "maxItems": 7,
          "items": {
            "type": "string"
          },
          "description": "Weekday codes (MO…SU); MONTHLY uses a position prefix such as 1MO or -1FR. A WEEKLY rule must include the start's weekday."
        },
        "until": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "count": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1,
          "maximum": 1000
        }
      }
    }
  }
}