{
    "openapi": "3.1.0",
    "info": {
        "title": "FlowEvents API",
        "version": "v1",
        "description": "REST API für Seminare: Veranstaltungen und Termine anlegen, Teilnehmer aufnehmen und abrechnen, Zimmer verteilen, Anwesenheit erfassen, Unterschriften und Feedback einholen und Listen exportieren."
    },
    "servers": [
        {
            "url": "https://api.flowsuite.one",
            "description": "FlowSuite API"
        }
    ],
    "security": [
        {
            "bearerAuth": []
        }
    ],
    "tags": [
        {
            "name": "context",
            "description": "Überblick"
        },
        {
            "name": "reports",
            "description": "Auswertungen"
        },
        {
            "name": "events",
            "description": "Veranstaltungen"
        },
        {
            "name": "sessions",
            "description": "Termine"
        },
        {
            "name": "participants",
            "description": "Teilnehmer"
        },
        {
            "name": "attendance",
            "description": "Anwesenheit"
        },
        {
            "name": "event-rooms",
            "description": "Zimmerverteilung"
        },
        {
            "name": "venues",
            "description": "Tagungshäuser und Zimmer"
        },
        {
            "name": "mailings",
            "description": "Unterschriften und Feedback"
        },
        {
            "name": "feedback-forms",
            "description": "Feedback-Formulare"
        },
        {
            "name": "exports",
            "description": "Exporte"
        }
    ],
    "paths": {
        "/flowevents/context": {
            "get": {
                "operationId": "flowevents-context",
                "summary": "Erlaubte Werte, Vorgaben und Verfügbarkeit abrufen",
                "description": "Liefert alle erlaubten Werte für Veranstaltungsstatus, Format, Struktur, Buchungsart, Teilnehmerstatus, Rolle, Zertifizierungsstatus, Zimmertyp und Postenart, die Feldtypen der Feedback-Formulare samt Grenzen der Sternebewertung, die möglichen Versand- und Exportarten, die gespeicherten Unterschriften-Vorgaben des Teams sowie die Angabe, ob FlowAccounting für dieses Team erreichbar ist.",
                "tags": [
                    "context"
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "event_statuses": [
                                            "draft",
                                            "active",
                                            "cancelled",
                                            "closed"
                                        ],
                                        "event_formats": [
                                            "offline",
                                            "online"
                                        ],
                                        "participant_statuses": [
                                            "registered",
                                            "confirmed",
                                            "waitlisted",
                                            "cancelled"
                                        ],
                                        "room_types": [
                                            "single",
                                            "double",
                                            "multi"
                                        ],
                                        "price_item_kinds": [
                                            "accommodation",
                                            "catering",
                                            "room_fee",
                                            "other"
                                        ],
                                        "feedback_field_types": [
                                            "text",
                                            "textarea",
                                            "select",
                                            "checkbox",
                                            "radio",
                                            "rating",
                                            "section_heading",
                                            "paragraph"
                                        ],
                                        "signature_defaults": {
                                            "enabled": true,
                                            "text": "Hiermit bestätige ich meine Teilnahme."
                                        },
                                        "accounting_available": true,
                                        "pagination": {
                                            "default_per_page": 50,
                                            "max_per_page": 200
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/reports/participants": {
            "get": {
                "operationId": "flowevents-reports-participants",
                "summary": "Anmeldestand",
                "description": "Zählt die Teilnehmer einer Veranstaltung je Status. Alle vier Status sind immer enthalten, auch wenn keiner vorliegt.",
                "tags": [
                    "reports"
                ],
                "parameters": [
                    {
                        "name": "event_uuid",
                        "in": "query",
                        "required": true,
                        "description": "UUID der Veranstaltung.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "event_uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "counts": {
                                            "registered": 8,
                                            "confirmed": 12,
                                            "cancelled": 1,
                                            "waitlisted": 3
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/reports/occupancy": {
            "get": {
                "operationId": "flowevents-reports-occupancy",
                "summary": "Auslastung",
                "description": "Nennt Kapazität, belegte Plätze, freie Plätze und die Länge der Warteliste. Bei einer Veranstaltung ohne Kapazität ist free null und nicht null Plätze, denn ohne Obergrenze gibt es nichts zu zählen.",
                "tags": [
                    "reports"
                ],
                "parameters": [
                    {
                        "name": "event_uuid",
                        "in": "query",
                        "required": true,
                        "description": "UUID der Veranstaltung.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "event_uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "capacity": 20,
                                        "taken": 20,
                                        "free": 0,
                                        "waitlisted": 3
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/reports/rooms": {
            "get": {
                "operationId": "flowevents-reports-rooms",
                "summary": "Zimmerbelegung",
                "description": "Listet die Zimmer dieser Veranstaltung mit der für sie geltenden Kapazität und der aktuellen Belegung sowie die Zahl der noch nicht zugeteilten Teilnehmer. Eine abweichende Kapazität gilt nur für diese Veranstaltung.",
                "tags": [
                    "reports"
                ],
                "parameters": [
                    {
                        "name": "event_uuid",
                        "in": "query",
                        "required": true,
                        "description": "UUID der Veranstaltung.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "event_uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "rooms": [
                                            {
                                                "room_uuid": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                                                "name": "Zimmer 12",
                                                "room_type": "double",
                                                "capacity": 2,
                                                "capacity_override": null,
                                                "occupied": 1
                                            }
                                        ],
                                        "unassigned": 4
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/reports/attendance": {
            "get": {
                "operationId": "flowevents-reports-attendance",
                "summary": "Anwesenheit je Termin",
                "description": "Zählt je Termin die anwesend gemeldeten Teilnehmer, die insgesamt erfassten Zellen und die abgegebenen Hausaufgaben. Die Differenz zwischen present und recorded sind die vermerkten Abwesenheiten.",
                "tags": [
                    "reports"
                ],
                "parameters": [
                    {
                        "name": "event_uuid",
                        "in": "query",
                        "required": true,
                        "description": "UUID der Veranstaltung.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "event_uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "tracks_homework": true,
                                        "sessions": [
                                            {
                                                "session_uuid": "2b3c4d5e-6f70-4a8b-9c0d-1e2f3a4b5c6d",
                                                "starts_at": "2026-10-12T09:00:00+02:00",
                                                "present": 18,
                                                "recorded": 20,
                                                "homework_submitted": 15
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/reports/feedback": {
            "get": {
                "operationId": "flowevents-reports-feedback",
                "summary": "Feedback-Auswertung",
                "description": "Wertet die abgegebenen Rückmeldungen einer Veranstaltung aus. Die Antworten werden nach der Frage gruppiert, zu der sie gehören, und nicht nach der Fassung, unter der sie gegeben wurden. Eine zweimal umformulierte Frage bleibt dadurch eine Frage.",
                "tags": [
                    "reports"
                ],
                "parameters": [
                    {
                        "name": "event_uuid",
                        "in": "query",
                        "required": true,
                        "description": "UUID der Veranstaltung.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "event_uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "submission_count": 14,
                                        "questions": {
                                            "812": {
                                                "label": "Wie zufrieden waren Sie?",
                                                "field_type": "rating",
                                                "answers": [
                                                    {
                                                        "participant_name": "Anna Berger",
                                                        "value": "5",
                                                        "submission_id": 44
                                                    }
                                                ],
                                                "aggregate": {
                                                    "average": 4.6
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events": {
            "get": {
                "operationId": "flowevents-events-index",
                "summary": "Veranstaltungen auflisten",
                "description": "Listet die Veranstaltungen des Teams. Sortiert wird nach dem frühesten Termin; Veranstaltungen ohne Termin stehen am Ende. Der Zeitraum bezieht sich auf die Termine, nicht auf das Anlagedatum.",
                "tags": [
                    "events"
                ],
                "parameters": [
                    {
                        "name": "status",
                        "in": "query",
                        "required": false,
                        "description": "draft, active, cancelled oder closed.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "required": false,
                        "description": "offline oder online.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "required": false,
                        "description": "Volltextsuche im Titel.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Frühester Termin (YYYY-MM-DD).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": false,
                        "description": "Spätester Termin (YYYY-MM-DD).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Einträge je Seite, 1 bis 200. Vorgabe 50.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Seitennummer, ab 1.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                            "title": "Grundkurs Herbst",
                                            "status": "active",
                                            "format": "offline",
                                            "structure": "multi_part",
                                            "booking_mode": "open",
                                            "capacity": 20,
                                            "price_regular": "480.00",
                                            "sessions": [
                                                {
                                                    "uuid": "2b3c4d5e-6f70-4a8b-9c0d-1e2f3a4b5c6d",
                                                    "starts_at": "2026-10-12T09:00:00+02:00"
                                                }
                                            ]
                                        }
                                    ],
                                    "meta": {
                                        "current_page": 1,
                                        "per_page": 50,
                                        "total": 7,
                                        "last_page": 1
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "flowevents-events-store",
                "summary": "Veranstaltung anlegen",
                "description": "Legt eine Veranstaltung samt Terminen und optionalen Posten an. Mindestens ein Termin ist Pflicht. Eine Inhouse-Veranstaltung benötigt eine Firma. Eine neue Veranstaltung ist immer aktiv; der Status lässt sich nicht mitschicken.",
                "tags": [
                    "events"
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "title": "Grundkurs Herbst",
                                        "status": "active",
                                        "booking_mode": "open",
                                        "sessions": [
                                            {
                                                "uuid": "2b3c4d5e-6f70-4a8b-9c0d-1e2f3a4b5c6d",
                                                "starts_at": "2026-10-12T09:00:00+02:00",
                                                "sort_order": 0
                                            }
                                        ],
                                        "price_items": []
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "title": {
                                        "type": "string",
                                        "description": "Titel, höchstens 255 Zeichen."
                                    },
                                    "description": {
                                        "type": "string",
                                        "description": "Beschreibung, höchstens 5000 Zeichen."
                                    },
                                    "format": {
                                        "type": "string",
                                        "description": "offline oder online. Vorgabe offline. Bei online werden Zimmer und Verpflegung abgeschaltet."
                                    },
                                    "structure": {
                                        "type": "string",
                                        "description": "simple oder multi_part. Bei simple wird nur der erste Termin gespeichert."
                                    },
                                    "booking_mode": {
                                        "type": "string",
                                        "description": "open oder inhouse. Vorgabe open. Später unveränderlich."
                                    },
                                    "client_uuid": {
                                        "type": "string",
                                        "description": "UUID der buchenden Firma. Pflicht bei booking_mode inhouse."
                                    },
                                    "project_uuid": {
                                        "type": "string",
                                        "description": "UUID des Projekts der Firma."
                                    },
                                    "capacity": {
                                        "type": "integer",
                                        "description": "Höchstzahl der Plätze. Bei Inhouse ohne Wirkung."
                                    },
                                    "price_regular": {
                                        "type": "number",
                                        "description": "Regulärer Seminarpreis."
                                    },
                                    "price_reduced": {
                                        "type": "number",
                                        "description": "Ermäßigter Preis."
                                    },
                                    "price_early_bird": {
                                        "type": "number",
                                        "description": "Frühbucherpreis."
                                    },
                                    "early_bird_until": {
                                        "type": "string",
                                        "description": "Frühbucherfrist (YYYY-MM-DD). Ohne Frühbucherpreis wirkungslos."
                                    },
                                    "seminar_fee_tax_rate": {
                                        "type": "number",
                                        "description": "Steuersatz in Prozent. Leer bedeutet Vorgabe des Teams."
                                    },
                                    "prices_include_tax": {
                                        "type": "boolean",
                                        "description": "Ob die Preise brutto verstanden werden."
                                    },
                                    "uses_accommodation": {
                                        "type": "boolean",
                                        "description": "Ob Kost und Logis genutzt werden."
                                    },
                                    "tracks_homework": {
                                        "type": "boolean",
                                        "description": "Ob Hausaufgaben erfasst werden."
                                    },
                                    "signatures_enabled": {
                                        "type": "boolean",
                                        "description": "Ob Unterschriften eingeholt werden."
                                    },
                                    "signature_confirmation_text": {
                                        "type": "string",
                                        "description": "Bestätigungstext der Unterschriftenseite."
                                    },
                                    "feedback_enabled": {
                                        "type": "boolean",
                                        "description": "Ob Feedback eingeholt werden kann (Versand, Auswertung, Export)."
                                    },
                                    "notes": {
                                        "type": "string",
                                        "description": "Interne Notizen."
                                    },
                                    "sessions": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Mindestens ein Termin mit starts_at, optional ends_at, venue_uuid und online_access_info."
                                    },
                                    "price_items": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Posten mit name, kind, amount, optional tax_rate und is_optional."
                                    }
                                },
                                "required": [
                                    "title",
                                    "sessions"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}": {
            "get": {
                "operationId": "flowevents-events-show",
                "summary": "Veranstaltung abrufen",
                "description": "Liefert eine Veranstaltung mit ihren Terminen, ihren Posten und dem Anmeldestand je Status.",
                "tags": [
                    "events"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "title": "Grundkurs Herbst",
                                        "status": "active",
                                        "sessions": [],
                                        "price_items": [
                                            {
                                                "uuid": "3c4d5e6f-7081-4b9c-0d1e-2f3a4b5c6d7e",
                                                "name": "Vollpension",
                                                "kind": "catering",
                                                "amount": "120.00",
                                                "is_optional": true,
                                                "is_invoiced": false
                                            }
                                        ],
                                        "participant_counts": {
                                            "registered": 8,
                                            "confirmed": 12,
                                            "cancelled": 1,
                                            "waitlisted": 3
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "operationId": "flowevents-events-update",
                "summary": "Veranstaltung ändern",
                "description": "Ändert eine Veranstaltung. Nicht mitgeschickte Felder bleiben unverändert. Werden sessions oder price_items mitgeschickt, gilt die Liste vollständig. Ein bereits abgerechneter Posten lässt sich nicht entfernen und führt zu HTTP 409.",
                "tags": [
                    "events"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "title": "Grundkurs Herbst 2026",
                                        "status": "active"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "title": {
                                        "type": "string",
                                        "description": "Titel."
                                    },
                                    "format": {
                                        "type": "string",
                                        "description": "offline oder online."
                                    },
                                    "structure": {
                                        "type": "string",
                                        "description": "simple oder multi_part."
                                    },
                                    "capacity": {
                                        "type": "integer",
                                        "description": "Höchstzahl der Plätze."
                                    },
                                    "sessions": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Vollständige Terminliste. Vorhandene Termine tragen ihre uuid."
                                    },
                                    "price_items": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Vollständige Postenliste. Vorhandene Posten tragen ihre uuid."
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "flowevents-events-destroy",
                "summary": "Veranstaltung löschen",
                "description": "Löscht eine Veranstaltung. Es ist ein weiches Löschen: Teilnehmer, erfasste Anwesenheit und geschriebene Rechnungen behalten ihren Zusammenhang.",
                "tags": [
                    "events"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Veranstaltung gelöscht."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/cancel": {
            "post": {
                "operationId": "flowevents-events-cancel",
                "summary": "Veranstaltung absagen",
                "description": "Setzt eine aktive Veranstaltung auf abgesagt. Eine Veranstaltung, die nicht aktiv ist, wird mit HTTP 409 abgelehnt. Nach der Absage sind keine Anmeldungen mehr möglich.",
                "tags": [
                    "events"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "status": "cancelled"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/close": {
            "post": {
                "operationId": "flowevents-events-close",
                "summary": "Veranstaltung abschließen",
                "description": "Setzt eine aktive Veranstaltung auf abgeschlossen. Eine Veranstaltung, die nicht aktiv ist, wird mit HTTP 409 abgelehnt.",
                "tags": [
                    "events"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "status": "closed"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/duplicate": {
            "post": {
                "operationId": "flowevents-events-duplicate",
                "summary": "Veranstaltung duplizieren",
                "description": "Legt eine Kopie an. Die Kopie ist aktiv, trägt den Zusatz Kopie im Titel und übernimmt die Termine ohne ihre Zeiten, denn der nächste Durchlauf findet an anderen Tagen statt. Teilnehmer werden nicht kopiert, Zimmer eines Tagungshauses schon.",
                "tags": [
                    "events"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "4d5e6f70-8192-4c0d-1e2f-3a4b5c6d7e8f",
                                        "title": "Grundkurs Herbst (Kopie)",
                                        "status": "active"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/sessions": {
            "get": {
                "operationId": "flowevents-sessions-index",
                "summary": "Termine einer Veranstaltung auflisten",
                "description": "Listet alle Termine einer Veranstaltung in ihrer Reihenfolge.",
                "tags": [
                    "sessions"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "2b3c4d5e-6f70-4a8b-9c0d-1e2f3a4b5c6d",
                                            "title": null,
                                            "starts_at": "2026-10-12T09:00:00+02:00",
                                            "ends_at": "2026-10-14T17:00:00+02:00",
                                            "venue_uuid": "5e6f7081-9203-4d1e-2f3a-4b5c6d7e8f90",
                                            "sort_order": 0
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "flowevents-sessions-store",
                "summary": "Termin hinzufügen",
                "description": "Fügt einer Veranstaltung einen Termin hinzu. Zugangsdaten für online werden nur bei einer Online-Veranstaltung gespeichert.",
                "tags": [
                    "sessions"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "6f708192-a304-4e2f-3a4b-5c6d7e8f9001",
                                        "starts_at": "2026-11-09T09:00:00+01:00",
                                        "sort_order": 3
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "starts_at": {
                                        "type": "string",
                                        "description": "Beginn als Datum oder Zeitstempel."
                                    },
                                    "ends_at": {
                                        "type": "string",
                                        "description": "Ende, nicht vor dem Beginn."
                                    },
                                    "title": {
                                        "type": "string",
                                        "description": "Bezeichnung des Termins."
                                    },
                                    "venue_uuid": {
                                        "type": "string",
                                        "description": "UUID des Tagungshauses."
                                    },
                                    "online_access_info": {
                                        "type": "string",
                                        "description": "Zugangsdaten, nur bei Online-Veranstaltungen."
                                    },
                                    "capacity": {
                                        "type": "integer",
                                        "description": "Eigene Kapazität des Termins."
                                    },
                                    "guest_price": {
                                        "type": "number",
                                        "description": "Preis für Gasthörer je Termin."
                                    },
                                    "sort_order": {
                                        "type": "integer",
                                        "description": "Reihenfolge. Ohne Angabe ans Ende."
                                    },
                                    "notes": {
                                        "type": "string",
                                        "description": "Interne Notizen."
                                    }
                                },
                                "required": [
                                    "starts_at"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/sessions/{uuid}": {
            "put": {
                "operationId": "flowevents-sessions-update",
                "summary": "Termin ändern",
                "description": "Ändert einen Termin. Nicht mitgeschickte Felder bleiben unverändert. Das Ende wird gegen den Beginn geprüft, den der Termin nach dieser Anfrage hat, nicht nur gegen den in dieser Anfrage.",
                "tags": [
                    "sessions"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "2b3c4d5e-6f70-4a8b-9c0d-1e2f3a4b5c6d",
                                        "starts_at": "2026-10-13T09:00:00+02:00"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "starts_at": {
                                        "type": "string",
                                        "description": "Beginn."
                                    },
                                    "ends_at": {
                                        "type": "string",
                                        "description": "Ende, nicht vor dem Beginn."
                                    },
                                    "title": {
                                        "type": "string",
                                        "description": "Bezeichnung."
                                    },
                                    "venue_uuid": {
                                        "type": "string",
                                        "description": "UUID des Tagungshauses, null löst die Zuordnung."
                                    },
                                    "online_access_info": {
                                        "type": "string",
                                        "description": "Zugangsdaten, nur bei Online-Veranstaltungen."
                                    },
                                    "capacity": {
                                        "type": "integer",
                                        "description": "Eigene Kapazität."
                                    },
                                    "guest_price": {
                                        "type": "number",
                                        "description": "Preis für Gasthörer."
                                    },
                                    "sort_order": {
                                        "type": "integer",
                                        "description": "Reihenfolge."
                                    },
                                    "notes": {
                                        "type": "string",
                                        "description": "Interne Notizen."
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "flowevents-sessions-destroy",
                "summary": "Termin löschen",
                "description": "Löscht einen Termin. Es ist ein weiches Löschen, die erfasste Anwesenheit bleibt erhalten.",
                "tags": [
                    "sessions"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Termin gelöscht."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/participants": {
            "get": {
                "operationId": "flowevents-participants-index",
                "summary": "Teilnehmer auflisten",
                "description": "Listet Teilnehmer des Teams, neueste Anmeldung zuerst, wahlweise auf eine Veranstaltung, einen Status oder eine Rolle eingegrenzt.",
                "tags": [
                    "participants"
                ],
                "parameters": [
                    {
                        "name": "event_uuid",
                        "in": "query",
                        "required": false,
                        "description": "Nur Teilnehmer dieser Veranstaltung.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "required": false,
                        "description": "registered, confirmed, waitlisted oder cancelled.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "role",
                        "in": "query",
                        "required": false,
                        "description": "regular oder guest_listener.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Einträge je Seite, 1 bis 200. Vorgabe 50.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Seitennummer, ab 1.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "7081 92a3-b415-4f30-4b5c-6d7e8f900112",
                                            "name": "Anna Berger",
                                            "email": "anna@example.com",
                                            "status": "confirmed",
                                            "role": "regular",
                                            "assigned_price": "480.00",
                                            "room_uuid": null
                                        }
                                    ],
                                    "meta": {
                                        "current_page": 1,
                                        "per_page": 50,
                                        "total": 24,
                                        "last_page": 1
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/participants": {
            "post": {
                "operationId": "flowevents-participants-store",
                "summary": "Teilnehmer anmelden",
                "description": "Meldet einen CRM-Kunden auf einer Veranstaltung an. Ob ein Platz oder die Warteliste herauskommt, entscheidet die Kapazität und steht im zurückgegebenen Status. Eine zweite aktive Anmeldung desselben Kunden wird mit HTTP 409 abgelehnt.",
                "tags": [
                    "participants"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "708192a3-b415-4f30-4b5c-6d7e8f900112",
                                        "name": "Anna Berger",
                                        "status": "registered",
                                        "role": "regular",
                                        "assigned_price": "480.00"
                                    },
                                    "meta": {
                                        "early_bird_fallback_applied": false
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "client_uuid": {
                                        "type": "string",
                                        "description": "UUID des CRM-Kunden."
                                    },
                                    "role": {
                                        "type": "string",
                                        "description": "regular oder guest_listener. Vorgabe regular."
                                    },
                                    "price_tier": {
                                        "type": "string",
                                        "description": "regular, reduced oder early_bird. Vorgabe regular."
                                    },
                                    "assigned_price": {
                                        "type": "number",
                                        "description": "Abweichender Preis. Die Frühbucherfrist gewinnt darüber."
                                    },
                                    "remarks": {
                                        "type": "string",
                                        "description": "Bemerkungen."
                                    },
                                    "session_uuids": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Gebuchte Termine eines Gasthörers."
                                    },
                                    "price_item_uuids": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Gebuchte Posten. Ohne Angabe gelten alle nicht optionalen Posten."
                                    },
                                    "price_item_overrides": {
                                        "type": "object",
                                        "description": "Abweichende Beträge je Posten-UUID."
                                    }
                                },
                                "required": [
                                    "client_uuid"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/participants/{uuid}": {
            "get": {
                "operationId": "flowevents-participants-show",
                "summary": "Teilnehmer abrufen",
                "description": "Liefert einen Teilnehmer mit seiner Veranstaltung, seinem Zimmer und seinen gebuchten Posten.",
                "tags": [
                    "participants"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "708192a3-b415-4f30-4b5c-6d7e8f900112",
                                        "name": "Anna Berger",
                                        "status": "confirmed",
                                        "payment_status": "open",
                                        "price_item_selections": [
                                            {
                                                "price_item_uuid": "3c4d5e6f-7081-4b9c-0d1e-2f3a4b5c6d7e",
                                                "name": "Vollpension",
                                                "effective_amount": "120.00"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "operationId": "flowevents-participants-update",
                "summary": "Teilnehmer ändern",
                "description": "Ändert einen Teilnehmer. Der Status cancelled wird abgelehnt. Ein Wechsel von regulär auf Gasthörer, der erfasste Anwesenheit verwerfen würde, verlangt confirm_attendance_loss. Ein Nachrücken von der Warteliste wird gegen die Kapazität geprüft.",
                "tags": [
                    "participants"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "708192a3-b415-4f30-4b5c-6d7e8f900112",
                                        "status": "confirmed",
                                        "role": "regular"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "status": {
                                        "type": "string",
                                        "description": "registered, confirmed oder waitlisted."
                                    },
                                    "role": {
                                        "type": "string",
                                        "description": "regular oder guest_listener."
                                    },
                                    "price_tier": {
                                        "type": "string",
                                        "description": "Preisstufe."
                                    },
                                    "assigned_price": {
                                        "type": "number",
                                        "description": "Abweichender Preis. Bei einem Gasthörer immer leer."
                                    },
                                    "remarks": {
                                        "type": "string",
                                        "description": "Bemerkungen."
                                    },
                                    "dietary_notes": {
                                        "type": "string",
                                        "description": "Hinweise zur Verpflegung."
                                    },
                                    "bed_linen_required": {
                                        "type": "boolean",
                                        "description": "Ob Bettwäsche gebraucht wird."
                                    },
                                    "certification_status": {
                                        "type": "string",
                                        "description": "none, first_graduation oder final_certificate."
                                    },
                                    "confirm_attendance_loss": {
                                        "type": "boolean",
                                        "description": "Bestätigt den Verlust erfasster Anwesenheit beim Rollenwechsel."
                                    },
                                    "session_uuids": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Gebuchte Termine eines Gasthörers."
                                    },
                                    "price_item_uuids": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Gebuchte Posten."
                                    },
                                    "price_item_overrides": {
                                        "type": "object",
                                        "description": "Abweichende Beträge je Posten-UUID."
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/participants/{uuid}/confirm": {
            "post": {
                "operationId": "flowevents-participants-confirm",
                "summary": "Teilnahme bestätigen",
                "description": "Setzt einen Teilnehmer auf bestätigt. Ein stornierter Teilnehmer wird mit HTTP 409 abgelehnt.",
                "tags": [
                    "participants"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "708192a3-b415-4f30-4b5c-6d7e8f900112",
                                        "status": "confirmed"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/participants/{uuid}/cancel": {
            "post": {
                "operationId": "flowevents-participants-cancel",
                "summary": "Teilnehmer stornieren",
                "description": "Storniert einen Teilnehmer. Die Raten werden storniert, offene Rechnungen aufgehoben und der nächste Wartende rückt nach. Bezahlte Rechnungen bleiben bestehen. Die Antwort nennt die Zahlen und, falls vorhanden, den nachgerückten Teilnehmer.",
                "tags": [
                    "participants"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "708192a3-b415-4f30-4b5c-6d7e8f900112",
                                        "status": "cancelled"
                                    },
                                    "meta": {
                                        "promoted_participant_uuid": "8192a3b4-1546-4031-5c6d-7e8f90011223",
                                        "cancelled_invoices": 1,
                                        "preserved_paid_invoices": 0,
                                        "skipped_invoices": 0,
                                        "failed_invoice_numbers": []
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/participants/{uuid}/promote": {
            "post": {
                "operationId": "flowevents-participants-promote",
                "summary": "Von der Warteliste nachrücken",
                "description": "Rückt einen Wartenden von Hand nach. Eine Kapazitätsprüfung findet bewusst nicht statt: Wer hier nachrückt, überschreitet die Obergrenze wissentlich. Ein Teilnehmer, der nicht auf der Warteliste steht, wird mit HTTP 409 abgelehnt.",
                "tags": [
                    "participants"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "8192a3b4-1546-4031-5c6d-7e8f90011223",
                                        "status": "registered",
                                        "waitlist_position": null
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/participants/{uuid}/price-items": {
            "get": {
                "operationId": "flowevents-participants-price-items-index",
                "summary": "Gebuchte Posten abrufen",
                "description": "Listet die von diesem Teilnehmer gebuchten Posten mit dem tatsächlich geltenden Betrag. Ohne abweichenden Betrag gilt der Betrag der Veranstaltung.",
                "tags": [
                    "participants"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "92a3b415-4630-4152-6d7e-8f9001122334",
                                            "price_item_uuid": "3c4d5e6f-7081-4b9c-0d1e-2f3a4b5c6d7e",
                                            "name": "Vollpension",
                                            "kind": "catering",
                                            "amount_override": null,
                                            "effective_amount": "120.00"
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "operationId": "flowevents-participants-price-items-update",
                "summary": "Gebuchte Posten setzen",
                "description": "Setzt die Postenauswahl eines Teilnehmers. Die Liste ersetzt die Auswahl vollständig; ein Posten, der bereits auf einer Rechnung steht, lässt sich nicht abwählen und führt zu HTTP 409. Posten fremder Veranstaltungen werden verworfen.",
                "tags": [
                    "participants"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "price_item_uuid": "3c4d5e6f-7081-4b9c-0d1e-2f3a4b5c6d7e",
                                            "name": "Vollpension",
                                            "amount_override": "95.00",
                                            "effective_amount": "95.00"
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "price_item_uuids": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Die vollständige Auswahl. Eine leere Liste bucht alles ab."
                                    },
                                    "price_item_overrides": {
                                        "type": "object",
                                        "description": "Abweichende Beträge, nach Posten-UUID geschlüsselt."
                                    }
                                },
                                "required": [
                                    "price_item_uuids"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/participants/{uuid}/invoice": {
            "post": {
                "operationId": "flowevents-participants-invoice",
                "summary": "Rechnung für einen Teilnehmer erstellen",
                "description": "Erstellt eine Rechnung über die ausgewählten Posten. postens benennt nur, was abgerechnet wird, nie wie viel: jeder Betrag und jeder Steuersatz wird serverseitig aus der eigenen Veranstaltung des Teilnehmers gelesen. Ohne FlowAccounting, bei bestehendem Ratenplan, bei einem bereits abgerechneten Posten oder ohne Rechnungsempfänger antwortet der Aufruf mit HTTP 409 und nennt den Grund.",
                "tags": [
                    "participants"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "invoice_uuid": "a3b41546-3041-4263-7e8f-900112233445",
                                        "invoice_number": "RE-2026-0142",
                                        "participant_uuid": "708192a3-b415-4f30-4b5c-6d7e8f900112"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "postens": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Liste aus seminar_fee und den UUIDs der abzurechnenden Posten, höchstens 20 Einträge."
                                    }
                                },
                                "required": [
                                    "postens"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/billing": {
            "get": {
                "operationId": "flowevents-events-billing-index",
                "summary": "Abrechnungsbild einer Veranstaltung abrufen",
                "description": "Liefert den Abrechnungsstand aller Teilnehmer einer Veranstaltung in einem Aufruf: Zahlungsstatus, vereinbarter Preis, Zahlart und die zugehörigen Abrechnungsposten samt Rechnungsnummern. Zusätzlich die Posten der Veranstaltung selbst, die zu keinem Teilnehmer gehören, etwa die Firmenrechnung einer Inhouse-Veranstaltung. Benötigt FlowAccounting und antwortet sonst mit HTTP 403.",
                "tags": [
                    "participants"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "event_uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "booking_mode": "open",
                                        "manual_payment_status": "open",
                                        "participants": [
                                            {
                                                "uuid": "708192a3-b415-4f30-4b5c-6d7e8f900112",
                                                "name": "Anna Berger",
                                                "payment_status": "open",
                                                "assigned_price": "480.00",
                                                "invoice_links": [
                                                    {
                                                        "uuid": "b4154630-4152-4374-8f90-011223344556",
                                                        "link_type": "seminar_fee",
                                                        "invoice_number": "RE-2026-0142"
                                                    }
                                                ]
                                            }
                                        ],
                                        "event_invoice_links": []
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/participants/{uuid}/installments": {
            "get": {
                "operationId": "flowevents-participants-installments-index",
                "summary": "Abrechnungsposten und Raten abrufen",
                "description": "Listet die Abrechnungsposten eines Teilnehmers samt Ratenplan. Eine Rate gibt es, bevor es ihre Rechnung gibt: invoice_uuid bleibt leer, bis der Lauf die Rechnung schreibt. Das ist der Normalzustand einer künftigen Rate und kein Fehler.",
                "tags": [
                    "participants"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "b4154630-4152-4374-8f90-011223344556",
                                            "link_type": "installment",
                                            "installment_number": 1,
                                            "installment_amount": "160.00",
                                            "planned_due_date": "2026-10-01",
                                            "invoice_uuid": null
                                        }
                                    ],
                                    "meta": {
                                        "installment_count": 3
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/attendance": {
            "get": {
                "operationId": "flowevents-attendance-index",
                "summary": "Anwesenheitsraster abrufen",
                "description": "Liefert das vollständige Raster einer Veranstaltung: alle Termine, alle aktiven Teilnehmer und je Kombination den Anwesenheits- und Hausaufgabenzustand.",
                "tags": [
                    "attendance"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "event_uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "tracks_homework": true,
                                        "sessions": [
                                            {
                                                "uuid": "2b3c4d5e-6f70-4a8b-9c0d-1e2f3a4b5c6d",
                                                "starts_at": "2026-10-12T09:00:00+02:00"
                                            }
                                        ],
                                        "participants": [
                                            {
                                                "uuid": "708192a3-b415-4f30-4b5c-6d7e8f900112",
                                                "name": "Anna Berger",
                                                "attendance": [
                                                    {
                                                        "session_uuid": "2b3c4d5e-6f70-4a8b-9c0d-1e2f3a4b5c6d",
                                                        "attended": true,
                                                        "homework_submitted": null,
                                                        "notes": null
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/participants/{uuid}/attendance/{sessionUuid}": {
            "put": {
                "operationId": "flowevents-attendance-update",
                "summary": "Anwesenheit erfassen",
                "description": "Schreibt eine Zelle des Rasters. Ein nicht mitgeschicktes Feld bleibt unberührt, ein ausdrückliches null setzt es auf nicht erfasst zurück. Hausaufgaben lassen sich nur erfassen, wenn die Veranstaltung sie führt.",
                "tags": [
                    "attendance"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "sessionUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "15463041-5237-4485-9001-122334455667",
                                        "session_uuid": "2b3c4d5e-6f70-4a8b-9c0d-1e2f3a4b5c6d",
                                        "participant_uuid": "708192a3-b415-4f30-4b5c-6d7e8f900112",
                                        "attended": true,
                                        "homework_submitted": null
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "attended": {
                                        "type": "boolean",
                                        "description": "true, false oder null."
                                    },
                                    "homework_submitted": {
                                        "type": "boolean",
                                        "description": "true, false oder null. Nur bei Veranstaltungen mit Hausaufgaben."
                                    },
                                    "notes": {
                                        "type": "string",
                                        "description": "Notiz zur Zelle."
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/rooms": {
            "get": {
                "operationId": "flowevents-event-rooms-index",
                "summary": "Zimmer einer Veranstaltung auflisten",
                "description": "Listet die Zimmer dieser Veranstaltung mit der für sie geltenden Kapazität und der aktuellen Belegung.",
                "tags": [
                    "event-rooms"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                                            "name": "Zimmer 12",
                                            "room_type": "double",
                                            "capacity": 2,
                                            "venue_uuid": "5e6f7081-9203-4d1e-2f3a-4b5c6d7e8f90",
                                            "is_ad_hoc": false,
                                            "capacity_override": null,
                                            "effective_capacity": 2,
                                            "occupied": 1
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "flowevents-event-rooms-store",
                "summary": "Zimmer zur Veranstaltung hinzufügen",
                "description": "Stellt vorhandene Zimmer einer Veranstaltung zur Verfügung. Der Aufruf ist wiederholbar: ein bereits zugeordnetes Zimmer behält seine Zuordnung und seine abweichende Kapazität.",
                "tags": [
                    "event-rooms"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                                            "name": "Zimmer 12",
                                            "effective_capacity": 2,
                                            "occupied": 0
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "room_uuids": {
                                        "type": "array",
                                        "items": [],
                                        "description": "UUIDs der Zimmer, mindestens eine."
                                    }
                                },
                                "required": [
                                    "room_uuids"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/rooms/ad-hoc": {
            "post": {
                "operationId": "flowevents-event-rooms-ad-hoc",
                "summary": "Zimmer für diese Veranstaltung anlegen",
                "description": "Legt ein Zimmer an, das zu keinem Tagungshaus gehört und nur für diese Veranstaltung gedacht ist. Genau deshalb lässt es sich später wieder vollständig entfernen.",
                "tags": [
                    "event-rooms"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "3b4c5d6e-7f80-4192-a3b4-c5d6e7f80112",
                                        "name": "Ferienwohnung nebenan",
                                        "room_type": "multi",
                                        "capacity": 4,
                                        "venue_uuid": null,
                                        "is_ad_hoc": true
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "Bezeichnung des Zimmers."
                                    },
                                    "room_type": {
                                        "type": "string",
                                        "description": "single, double oder multi."
                                    },
                                    "capacity": {
                                        "type": "integer",
                                        "description": "Anzahl der Betten, 1 bis 999."
                                    }
                                },
                                "required": [
                                    "name",
                                    "room_type",
                                    "capacity"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/rooms/{roomUuid}/capacity": {
            "put": {
                "operationId": "flowevents-event-rooms-capacity",
                "summary": "Abweichende Kapazität setzen",
                "description": "Setzt die Kapazität, die dieses Zimmer für diese eine Veranstaltung hat. Die Abweichung hängt an der Zuordnung und nicht am Zimmer, ein Doppelzimmer wird dadurch nicht dauerhaft zum Einzelzimmer. null stellt die eigene Kapazität des Zimmers wieder her.",
                "tags": [
                    "event-rooms"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "roomUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                                            "name": "Zimmer 12",
                                            "capacity": 2,
                                            "capacity_override": 1,
                                            "effective_capacity": 1,
                                            "occupied": 1
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "capacity_override": {
                                        "type": "integer",
                                        "description": "1 bis 999 oder null."
                                    }
                                },
                                "required": [
                                    "capacity_override"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/rooms/{roomUuid}": {
            "delete": {
                "operationId": "flowevents-event-rooms-destroy",
                "summary": "Zimmer von der Veranstaltung entfernen",
                "description": "Nimmt ein Zimmer von der Veranstaltung. Alle darin untergebrachten Teilnehmer verlieren zuerst ihren Platz. Ein eigens angelegtes Zimmer wird dabei gelöscht, ein Zimmer eines Tagungshauses bleibt bestehen.",
                "tags": [
                    "event-rooms"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "roomUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Zimmer von der Veranstaltung entfernt."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/participants/{uuid}/room": {
            "put": {
                "operationId": "flowevents-participants-room",
                "summary": "Teilnehmer einem Zimmer zuteilen",
                "description": "Teilt einen Teilnehmer einem Zimmer zu oder nimmt ihn heraus. room_uuid ist Pflicht und darf null sein; null hebt die Zuteilung auf. Ein volles Zimmer antwortet mit HTTP 409 samt Belegung und Kapazität, mit confirm_overbooking wird trotzdem geschrieben.",
                "tags": [
                    "event-rooms"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "708192a3-b415-4f30-4b5c-6d7e8f900112",
                                        "name": "Anna Berger",
                                        "room_uuid": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "room_uuid": {
                                        "type": "string",
                                        "description": "UUID des Zimmers oder null zum Herausnehmen."
                                    },
                                    "confirm_overbooking": {
                                        "type": "boolean",
                                        "description": "Bestätigt eine Überbelegung ausdrücklich."
                                    }
                                },
                                "required": [
                                    "room_uuid"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/venues": {
            "get": {
                "operationId": "flowevents-venues-index",
                "summary": "Tagungshäuser auflisten",
                "description": "Listet die Tagungshäuser des Teams mit ihren Zimmern, nach Name sortiert.",
                "tags": [
                    "venues"
                ],
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "required": false,
                        "description": "Suche in Name und Ort.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Einträge je Seite, 1 bis 200. Vorgabe 50.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Seitennummer, ab 1.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "5e6f7081-9203-4d1e-2f3a-4b5c6d7e8f90",
                                            "name": "Haus am See",
                                            "city": "Konstanz",
                                            "country": "Deutschland",
                                            "rooms": [
                                                {
                                                    "uuid": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                                                    "name": "Zimmer 12",
                                                    "room_type": "double",
                                                    "capacity": 2
                                                }
                                            ]
                                        }
                                    ],
                                    "meta": {
                                        "current_page": 1,
                                        "per_page": 50,
                                        "total": 3,
                                        "last_page": 1
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "flowevents-venues-store",
                "summary": "Tagungshaus anlegen",
                "description": "Legt ein Tagungshaus an.",
                "tags": [
                    "venues"
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "5e6f7081-9203-4d1e-2f3a-4b5c6d7e8f90",
                                        "name": "Haus am See",
                                        "city": "Konstanz",
                                        "rooms": []
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "Name des Hauses."
                                    },
                                    "address": {
                                        "type": "string",
                                        "description": "Anschrift, höchstens 500 Zeichen."
                                    },
                                    "city": {
                                        "type": "string",
                                        "description": "Ort."
                                    },
                                    "country": {
                                        "type": "string",
                                        "description": "Land."
                                    },
                                    "notes": {
                                        "type": "string",
                                        "description": "Interne Notizen."
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/venues/{uuid}": {
            "get": {
                "operationId": "flowevents-venues-show",
                "summary": "Tagungshaus abrufen",
                "description": "Liefert ein Tagungshaus mit seinen Zimmern.",
                "tags": [
                    "venues"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "5e6f7081-9203-4d1e-2f3a-4b5c6d7e8f90",
                                        "name": "Haus am See",
                                        "address": "Seestrasse 4",
                                        "rooms": []
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "operationId": "flowevents-venues-update",
                "summary": "Tagungshaus ändern",
                "description": "Ändert ein Tagungshaus. Nicht mitgeschickte Felder bleiben unverändert.",
                "tags": [
                    "venues"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "5e6f7081-9203-4d1e-2f3a-4b5c6d7e8f90",
                                        "name": "Haus am See (neu)"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "Name des Hauses."
                                    },
                                    "address": {
                                        "type": "string",
                                        "description": "Anschrift."
                                    },
                                    "city": {
                                        "type": "string",
                                        "description": "Ort."
                                    },
                                    "country": {
                                        "type": "string",
                                        "description": "Land."
                                    },
                                    "notes": {
                                        "type": "string",
                                        "description": "Interne Notizen."
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "flowevents-venues-destroy",
                "summary": "Tagungshaus löschen",
                "description": "Löscht ein Tagungshaus. Es ist ein weiches Löschen; die Zimmer bleiben unverändert bestehen, damit keine bestehende Zuteilung stillschweigend aufgelöst wird.",
                "tags": [
                    "venues"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Tagungshaus gelöscht."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/venues/{uuid}/rooms": {
            "get": {
                "operationId": "flowevents-venue-rooms-index",
                "summary": "Zimmer eines Tagungshauses auflisten",
                "description": "Listet die Zimmer eines Tagungshauses, nach Name sortiert.",
                "tags": [
                    "venues"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                                            "name": "Zimmer 12",
                                            "room_type": "double",
                                            "capacity": 2,
                                            "venue_uuid": "5e6f7081-9203-4d1e-2f3a-4b5c6d7e8f90",
                                            "is_ad_hoc": false
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "flowevents-venue-rooms-store",
                "summary": "Zimmer anlegen",
                "description": "Legt ein Zimmer in einem Tagungshaus an.",
                "tags": [
                    "venues"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                                        "name": "Zimmer 12",
                                        "room_type": "double",
                                        "capacity": 2,
                                        "venue_uuid": "5e6f7081-9203-4d1e-2f3a-4b5c6d7e8f90"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "Bezeichnung des Zimmers."
                                    },
                                    "room_type": {
                                        "type": "string",
                                        "description": "single, double oder multi."
                                    },
                                    "capacity": {
                                        "type": "integer",
                                        "description": "Anzahl der Betten, 1 bis 999."
                                    }
                                },
                                "required": [
                                    "name",
                                    "room_type",
                                    "capacity"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/rooms/{uuid}": {
            "put": {
                "operationId": "flowevents-rooms-update",
                "summary": "Zimmer ändern",
                "description": "Ändert ein Zimmer. Das Tagungshaus lässt sich nicht wechseln und wird abgelehnt, wenn es mitgeschickt wird.",
                "tags": [
                    "venues"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
                                        "name": "Zimmer 12a",
                                        "capacity": 3
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "Bezeichnung."
                                    },
                                    "room_type": {
                                        "type": "string",
                                        "description": "single, double oder multi."
                                    },
                                    "capacity": {
                                        "type": "integer",
                                        "description": "Anzahl der Betten, 1 bis 999."
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "flowevents-rooms-destroy",
                "summary": "Zimmer löschen",
                "description": "Löscht ein Zimmer. Es ist ein weiches Löschen.",
                "tags": [
                    "venues"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Zimmer gelöscht."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/signatures/send": {
            "post": {
                "operationId": "flowevents-signatures-send",
                "summary": "Unterschriften anfordern",
                "description": "Verschickt die Unterschriften-Mails. Mit scope unsigned erhalten nur die Teilnehmer eine Mail, die noch nicht unterschrieben haben, mit all alle erneut. Die Antwort nennt die erzeugten Token, die eingereihten Mails und die Empfänger ohne Adresse.",
                "tags": [
                    "mailings"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "event_uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "scope": "unsigned",
                                        "tokens_created": 12,
                                        "mails_queued": 11,
                                        "skipped_no_email": 1
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "scope": {
                                        "type": "string",
                                        "description": "unsigned oder all. Vorgabe unsigned."
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/feedback/send": {
            "post": {
                "operationId": "flowevents-feedback-send",
                "summary": "Feedback anfordern",
                "description": "Verschickt die Feedback-Mails zu einem Formular und friert dabei eine Fassung des Formulars ein. Mit scope pending erhalten nur die Teilnehmer eine Mail, die noch nicht geantwortet haben.",
                "tags": [
                    "mailings"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "event_uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "form_uuid": "c5d6e7f8-0112-4233-4455-66778899aabb",
                                        "scope": "pending",
                                        "tokens_created": 12,
                                        "mails_queued": 12,
                                        "skipped_no_email": 0,
                                        "frozen_version_number": 2
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "form_uuid": {
                                        "type": "string",
                                        "description": "UUID des Feedback-Formulars."
                                    },
                                    "scope": {
                                        "type": "string",
                                        "description": "pending oder all. Vorgabe pending."
                                    }
                                },
                                "required": [
                                    "form_uuid"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/feedback/evaluation": {
            "get": {
                "operationId": "flowevents-feedback-evaluation",
                "summary": "Feedback einer Veranstaltung auswerten",
                "description": "Wertet die Rückmeldungen zu einer Veranstaltung aus, gruppiert nach der Frage und nicht nach der Fassung. Inhaltlich dieselbe Antwort wie die Auswertung unter reports, nur über die Veranstaltung im Pfad adressiert.",
                "tags": [
                    "mailings"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "event_uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
                                        "submission_count": 14,
                                        "questions": {
                                            "812": {
                                                "label": "Wie zufrieden waren Sie?",
                                                "field_type": "rating",
                                                "answers": [],
                                                "aggregate": {
                                                    "average": 4.6
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/feedback-forms": {
            "get": {
                "operationId": "flowevents-feedback-forms-index",
                "summary": "Feedback-Formulare auflisten",
                "description": "Listet die Feedback-Formulare des Teams mit der Nummer ihrer lebenden Fassung und der Zahl ihrer Felder.",
                "tags": [
                    "feedback-forms"
                ],
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "required": false,
                        "description": "Suche in Name und Beschreibung.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Einträge je Seite, 1 bis 200. Vorgabe 50.",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Seitennummer, ab 1.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "c5d6e7f8-0112-4233-4455-66778899aabb",
                                            "name": "Abschlussfeedback",
                                            "description": null,
                                            "version_number": 2,
                                            "field_count": 7
                                        }
                                    ],
                                    "meta": {
                                        "current_page": 1,
                                        "per_page": 50,
                                        "total": 2,
                                        "last_page": 1
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "flowevents-feedback-forms-store",
                "summary": "Feedback-Formular anlegen",
                "description": "Legt ein Formular an. Fassung 1 wird sofort mitangelegt, sodass das Formular vom ersten Moment an bearbeitbar ist.",
                "tags": [
                    "feedback-forms"
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "c5d6e7f8-0112-4233-4455-66778899aabb",
                                        "name": "Abschlussfeedback",
                                        "version_number": 1,
                                        "field_count": 0,
                                        "fields": []
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "Name des Formulars."
                                    },
                                    "description": {
                                        "type": "string",
                                        "description": "Beschreibung, höchstens 1000 Zeichen."
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/feedback-forms/{uuid}": {
            "get": {
                "operationId": "flowevents-feedback-forms-show",
                "summary": "Feedback-Formular abrufen",
                "description": "Liefert ein Formular mit den Feldern seiner lebenden Fassung in ihrer Reihenfolge.",
                "tags": [
                    "feedback-forms"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "c5d6e7f8-0112-4233-4455-66778899aabb",
                                        "name": "Abschlussfeedback",
                                        "version_number": 2,
                                        "field_count": 1,
                                        "fields": [
                                            {
                                                "uuid": "d6e7f801-1223-4344-5566-778899aabbcc",
                                                "field_type": "rating",
                                                "label": "Wie zufrieden waren Sie?",
                                                "is_required": true,
                                                "options": {
                                                    "max": 5,
                                                    "display": "numbers"
                                                },
                                                "sort_order": 1
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "operationId": "flowevents-feedback-forms-update",
                "summary": "Feedback-Formular ändern",
                "description": "Ändert Name oder Beschreibung eines Formulars. Nicht mitgeschickte Felder bleiben unverändert.",
                "tags": [
                    "feedback-forms"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "c5d6e7f8-0112-4233-4455-66778899aabb",
                                        "name": "Abschlussfeedback 2026"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "Name des Formulars."
                                    },
                                    "description": {
                                        "type": "string",
                                        "description": "Beschreibung."
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "flowevents-feedback-forms-destroy",
                "summary": "Feedback-Formular löschen",
                "description": "Löscht ein Formular. Liegen bereits Antworten vor, wird das Löschen mit HTTP 409 abgelehnt, weil die Antworten sonst ohne ihre Fragen dastünden.",
                "tags": [
                    "feedback-forms"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Feedback-Formular gelöscht."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/feedback-forms/{uuid}/fields": {
            "get": {
                "operationId": "flowevents-feedback-fields-index",
                "summary": "Felder eines Formulars auflisten",
                "description": "Listet die Felder der lebenden Fassung in ihrer Reihenfolge.",
                "tags": [
                    "feedback-forms"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "d6e7f801-1223-4344-5566-778899aabbcc",
                                            "field_type": "select",
                                            "label": "Wie haben Sie von uns erfahren?",
                                            "is_required": false,
                                            "options": [
                                                "Empfehlung",
                                                "Suchmaschine"
                                            ],
                                            "sort_order": 1
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "flowevents-feedback-fields-store",
                "summary": "Feld hinzufügen",
                "description": "Fügt der lebenden Fassung ein Feld hinzu. Der Feldtyp ist Pflicht und lässt sich später nicht mehr ändern. Ohne weitere Angaben gelten die Vorgaben des Typs.",
                "tags": [
                    "feedback-forms"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "e7f80112-2334-4455-6677-8899aabbccdd",
                                        "field_type": "rating",
                                        "label": "Wie zufrieden waren Sie?",
                                        "options": {
                                            "max": 5,
                                            "display": "numbers"
                                        },
                                        "sort_order": 2
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "field_type": {
                                        "type": "string",
                                        "description": "text, textarea, select, checkbox, radio, rating, section_heading oder paragraph."
                                    },
                                    "label": {
                                        "type": "string",
                                        "description": "Beschriftung, höchstens 255 Zeichen."
                                    },
                                    "help_text": {
                                        "type": "string",
                                        "description": "Hilfetext, höchstens 1000 Zeichen."
                                    },
                                    "is_required": {
                                        "type": "boolean",
                                        "description": "Ob eine Antwort verlangt wird."
                                    },
                                    "options": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Antworttexte bei select, radio und checkbox; bei rating ein Objekt mit max zwischen 2 und 10 und display (numbers oder stars, Standard numbers). Bei stars ist max höchstens 5."
                                    }
                                },
                                "required": [
                                    "field_type"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/feedback-forms/{uuid}/fields/order": {
            "put": {
                "operationId": "flowevents-feedback-fields-order",
                "summary": "Felder neu anordnen",
                "description": "Setzt die Reihenfolge der Felder. Die Liste ist die neue Reihenfolge vollständig; eine UUID, die zu einem anderen Formular gehört, wird verworfen.",
                "tags": [
                    "feedback-forms"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "e7f80112-2334-4455-6677-8899aabbccdd",
                                            "sort_order": 1
                                        },
                                        {
                                            "uuid": "d6e7f801-1223-4344-5566-778899aabbcc",
                                            "sort_order": 2
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "field_uuids": {
                                        "type": "array",
                                        "items": [],
                                        "description": "UUIDs der Felder in der gewünschten Reihenfolge."
                                    }
                                },
                                "required": [
                                    "field_uuids"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/feedback-forms/{uuid}/fields/{fieldUuid}": {
            "put": {
                "operationId": "flowevents-feedback-fields-update",
                "summary": "Feld ändern",
                "description": "Ändert Beschriftung, Hilfetext, Pflichtangabe oder Antwortmöglichkeiten eines Feldes. Der Feldtyp lässt sich nicht ändern und wird abgelehnt, wenn er mitgeschickt wird. Ein Stern-Höchstwert wird auf den erlaubten Bereich begrenzt.",
                "tags": [
                    "feedback-forms"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "fieldUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "e7f80112-2334-4455-6677-8899aabbccdd",
                                        "label": "Wie zufrieden sind Sie?",
                                        "options": {
                                            "max": 10,
                                            "display": "numbers"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "label": {
                                        "type": "string",
                                        "description": "Beschriftung."
                                    },
                                    "help_text": {
                                        "type": "string",
                                        "description": "Hilfetext."
                                    },
                                    "is_required": {
                                        "type": "boolean",
                                        "description": "Ob eine Antwort verlangt wird."
                                    },
                                    "options": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Antworttexte oder, bei rating, ein Objekt mit max und display (numbers oder stars)."
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "flowevents-feedback-fields-destroy",
                "summary": "Feld löschen",
                "description": "Löscht ein Feld aus der lebenden Fassung. Bereits eingefrorene Fassungen und die zu ihnen gegebenen Antworten bleiben unberührt.",
                "tags": [
                    "feedback-forms"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "fieldUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Feld gelöscht."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/exports/contacts": {
            "get": {
                "operationId": "flowevents-exports-contacts",
                "summary": "Kontaktliste exportieren",
                "description": "Liefert die Kontaktliste als CSV: Name, E-Mail, Telefon, Firma, Adresse, Rolle und Bemerkungen. Diese Liste enthält bewusst keine Geldbeträge und braucht deshalb kein FlowAccounting.",
                "tags": [
                    "exports"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "statuses",
                        "in": "query",
                        "required": false,
                        "description": "registered, confirmed, waitlisted, cancelled. Vorgabe registered und confirmed.",
                        "schema": {
                            "type": "array",
                            "items": []
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "text/event-stream": {
                                "schema": {
                                    "type": "string"
                                },
                                "example": "Name;E-Mail;Telefon;Firma;Adresse;Rolle;Bemerkungen"
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/exports/rooms": {
            "get": {
                "operationId": "flowevents-exports-rooms",
                "summary": "Zimmerliste exportieren",
                "description": "Liefert die Zimmerliste als CSV: Name, Zimmer, Zimmertyp, Sonderkost und Bettwäsche. Hat die Veranstaltung keinen Posten der Art accommodation (Unterkunft), antwortet der Aufruf mit HTTP 409 statt mit einer leeren Datei.",
                "tags": [
                    "exports"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "statuses",
                        "in": "query",
                        "required": false,
                        "description": "registered, confirmed, waitlisted, cancelled. Vorgabe registered und confirmed.",
                        "schema": {
                            "type": "array",
                            "items": []
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "text/event-stream": {
                                "schema": {
                                    "type": "string"
                                },
                                "example": "Name;Zimmer;Zimmertyp;Sonderkost;Bettwäsche"
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/exports/cost-payment": {
            "get": {
                "operationId": "flowevents-exports-cost-payment",
                "summary": "Kosten und Zahlung exportieren",
                "description": "Liefert Seminargebühr, Preisstufe, Kost und Logis, Gesamtbetrag und Zahlungsstatus als CSV. Benötigt FlowAccounting. Bei einer Inhouse-Veranstaltung enthält die Datei die Firmensumme statt einer Zeile je Teilnehmer.",
                "tags": [
                    "exports"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "statuses",
                        "in": "query",
                        "required": false,
                        "description": "registered, confirmed, waitlisted, cancelled. Vorgabe registered und confirmed.",
                        "schema": {
                            "type": "array",
                            "items": []
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "text/event-stream": {
                                "schema": {
                                    "type": "string"
                                },
                                "example": "Name;E-Mail;Seminargebühr;Preisstufe;Kost & Logis;Gesamt (brutto);Zahlungsstatus"
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/exports/full": {
            "get": {
                "operationId": "flowevents-exports-full",
                "summary": "Gesamtübersicht exportieren",
                "description": "Liefert alle Spalten in einer Datei: Kontaktdaten, Rolle, Preise, Zahlungs- und Zertifizierungsstatus, Zimmer, Sonderkost, Bettwäsche und Bemerkungen. Benötigt FlowAccounting.",
                "tags": [
                    "exports"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "statuses",
                        "in": "query",
                        "required": false,
                        "description": "registered, confirmed, waitlisted, cancelled. Vorgabe registered und confirmed.",
                        "schema": {
                            "type": "array",
                            "items": []
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "text/event-stream": {
                                "schema": {
                                    "type": "string"
                                },
                                "example": "Name;E-Mail;Telefon;Firma;Adresse;Rolle;Preis-Stufe;Seminargebühr;Kost & Logis;Gesamt (brutto);Zahlungsstatus;Zertifizierungsstatus;Zimmer;Zimmertyp;Sonderkost;Bettwäsche;Bemerkungen"
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/flowevents/events/{uuid}/exports/feedback": {
            "get": {
                "operationId": "flowevents-exports-feedback",
                "summary": "Feedback-Antworten exportieren",
                "description": "Liefert die abgegebenen Antworten als CSV mit einer Zeile je beantworteter Frage. Benötigt FlowAccounting. Liegen keine Antworten vor, antwortet der Aufruf mit HTTP 409 statt mit einer Datei, die nur eine Kopfzeile enthält.",
                "tags": [
                    "exports"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "text/event-stream": {
                                "schema": {
                                    "type": "string"
                                },
                                "example": "Teilnehmer;Frage;Antwort"
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "scheme": "bearer",
                "description": "API-Schlüssel (pk_… oder at_…) als Authorization: Bearer <Schlüssel>. Andere Übergabewege werden mit 401 abgelehnt."
            }
        },
        "schemas": {
            "Error": {
                "type": "object",
                "properties": {
                    "success": {
                        "type": "boolean"
                    },
                    "error": {
                        "type": "string"
                    },
                    "message": {
                        "type": "string"
                    },
                    "errors": {
                        "type": "object"
                    }
                }
            }
        }
    }
}