{
    "openapi": "3.1.0",
    "info": {
        "title": "FlowTasks API",
        "version": "v1",
        "description": "REST API für FlowTasks mit Boards, Listen, Todos und Kommentaren. Perfekt für Projektmanagement-Anwendungen, Task-Tracker und Automatisierungen."
    },
    "servers": [
        {
            "url": "https://api.flowsuite.one",
            "description": "FlowSuite API"
        }
    ],
    "security": [
        {
            "bearerAuth": []
        }
    ],
    "tags": [
        {
            "name": "todos",
            "description": "Todo-Verwaltung"
        },
        {
            "name": "boards",
            "description": "Boards"
        },
        {
            "name": "lists",
            "description": "Listen"
        },
        {
            "name": "assignments",
            "description": "Zuweisungen"
        },
        {
            "name": "comments",
            "description": "Kommentare"
        },
        {
            "name": "labels",
            "description": "Labels"
        },
        {
            "name": "checklists",
            "description": "Checklisten"
        },
        {
            "name": "sharing",
            "description": "Board-Freigaben und Eigentum"
        },
        {
            "name": "files",
            "description": "Dateien"
        }
    ],
    "paths": {
        "/todos": {
            "get": {
                "operationId": "todos-list",
                "summary": "Todos auflisten",
                "description": "Ruft die Todos Ihres Teams cursor-paginiert ab. Ohne board_id werden nur Ihre eigenen persönlichen Todos zurückgegeben; mit board_id werden die Todos des Boards (optional weiter auf list_id eingegrenzt) zurückgegeben.",
                "tags": [
                    "todos"
                ],
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "description": "Filter innerhalb der Ergebnismenge nach Typ: assigned (mir zugewiesen), completed (erledigt) oder created (von mir erstellt)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "completed",
                        "in": "query",
                        "required": false,
                        "description": "Filter nach Status: true oder false",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "priority",
                        "in": "query",
                        "required": false,
                        "description": "Filter nach Priorität: low, medium, high",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "board_id",
                        "in": "query",
                        "required": false,
                        "description": "Board-UUID; grenzt die Ergebnisse auf Todos dieses Boards ein (erfordert Board-Zugriff)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "list_id",
                        "in": "query",
                        "required": false,
                        "description": "Listen-UUID; nur in Kombination mit board_id, grenzt weiter auf eine Liste ein",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "cursor",
                        "in": "query",
                        "required": false,
                        "description": "Cursor aus dem meta-Objekt der vorherigen Antwort für die nächste/vorherige Seite",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Ergebnisse pro Seite, 1-100 (Default 50)",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "550e8400-e29b-41d4-a716-446655440000",
                                            "title": "Feature implementieren",
                                            "priority": "high",
                                            "completed": false,
                                            "list": {
                                                "uuid": "f0e1d2c3-...",
                                                "name": "In Progress"
                                            }
                                        }
                                    ],
                                    "meta": {
                                        "next_cursor": "eyJpZCI6MTIzfQ==",
                                        "prev_cursor": null,
                                        "has_more": true,
                                        "per_page": 50
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "todos-create",
                "summary": "Todo erstellen",
                "description": "Erstellt ein neues Todo. Kann persönlich (ohne list_id/board_id) oder in einem Board erstellt werden. Mit recurring_interval entsteht eine Serie, also ein Todo, das sich nach jedem Erledigen selbst auf den nächsten Termin setzt. Eine Serie erfordert ein due_date, sonst antwortet der Endpoint mit HTTP 422.",
                "tags": [
                    "todos"
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "550e8400-e29b-41d4-a716-446655440000",
                                        "title": "Feature implementieren",
                                        "priority": "high",
                                        "completed": false,
                                        "list": {
                                            "uuid": "f0e1d2c3-...",
                                            "name": "In Progress"
                                        },
                                        "created_at": "2024-01-01T10:00:00Z"
                                    },
                                    "message": "Todo created successfully."
                                }
                            }
                        }
                    },
                    "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 des Todos (max. 255 Zeichen)"
                                    },
                                    "description": {
                                        "type": "string",
                                        "description": "Beschreibung (max. 65.535 Zeichen)"
                                    },
                                    "due_date": {
                                        "type": "string",
                                        "description": "Fälligkeitsdatum (ISO 8601)"
                                    },
                                    "priority": {
                                        "type": "string",
                                        "description": "Priorität: low, medium, high"
                                    },
                                    "list_id": {
                                        "type": "string",
                                        "description": "UUID der Ziel-Liste"
                                    },
                                    "board_id": {
                                        "type": "string",
                                        "description": "UUID des Ziel-Boards (ohne list_id wird die erste Liste des Boards verwendet)"
                                    },
                                    "recurring_interval": {
                                        "type": "string",
                                        "description": "Wiederholungsintervall: daily, every_2_days, weekly, every_2_weeks, monthly, every_2_months, quarterly, half_yearly, yearly. Erfordert due_date"
                                    },
                                    "assigned_to": {
                                        "type": "string",
                                        "description": "UUID des zugewiesenen Benutzers (wird ignoriert, wenn assigned_to_ids gesetzt ist)"
                                    },
                                    "assigned_to_ids": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Array von Benutzer-UUIDs für Mehrfach-Zuweisung; hat Vorrang vor assigned_to"
                                    },
                                    "card_settings": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Card-Darstellung; erlaubte Keys: color (max. 32 Zeichen), labels (max. 50 Strings)"
                                    }
                                },
                                "required": [
                                    "title"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/search": {
            "get": {
                "operationId": "todos-search",
                "summary": "Todos suchen",
                "description": "Durchsucht Titel und Beschreibung aller Todos, auf die Sie Zugriff haben (eigene persönliche Todos plus Todos aus Boards mit Ihrem Zugriff).",
                "tags": [
                    "todos"
                ],
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "required": true,
                        "description": "Suchbegriff (1-100 Zeichen). Zeichen wie % und _ werden literal gesucht, nicht als Platzhalter",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "cursor",
                        "in": "query",
                        "required": false,
                        "description": "Cursor aus dem meta-Objekt der vorherigen Antwort für die nächste/vorherige Seite",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Ergebnisse pro Seite, 1-100 (Default 50)",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "550e8400-e29b-41d4-a716-446655440000",
                                            "title": "Feature implementieren",
                                            "priority": "high",
                                            "completed": false
                                        }
                                    ],
                                    "meta": {
                                        "next_cursor": "eyJpZCI6MTIzfQ==",
                                        "prev_cursor": null,
                                        "has_more": true,
                                        "per_page": 50
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/context": {
            "get": {
                "operationId": "todos-context",
                "summary": "Modul-Kontext abrufen",
                "description": "Liefert die schreibbaren Felder je Datensatzart mit ihren Regeln, die erlaubten Prioritäten, die Intervalle für Serienaufgaben, die Label-Farben und die Board-Rollen. Damit muss ein Client keine Maximallängen und Wertelisten fest verdrahten. Zusätzlich steht unter rights.manage_labels, ob der Schlüssel Labels verwalten darf.",
                "tags": [
                    "todos"
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "fields": {
                                            "todo": {
                                                "title": "required|string|max:255",
                                                "priority": "nullable|in:low,medium,high"
                                            }
                                        },
                                        "priorities": [
                                            "low",
                                            "medium",
                                            "high"
                                        ],
                                        "recurring_intervals": [
                                            "daily",
                                            "weekly",
                                            "monthly"
                                        ],
                                        "label_colors": [
                                            "zinc",
                                            "red",
                                            "blue"
                                        ],
                                        "board_roles": [
                                            "owner",
                                            "admin",
                                            "member"
                                        ],
                                        "rights": {
                                            "manage_labels": true
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}": {
            "get": {
                "operationId": "todos-show",
                "summary": "Todo abrufen",
                "description": "Ruft ein einzelnes Todo mit all seinen Details ab (inkl. Kommentare, Checklisten und Labels).",
                "tags": [
                    "todos"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "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": "550e8400-e29b-41d4-a716-446655440000",
                                        "title": "Feature implementieren",
                                        "description": null,
                                        "priority": "high",
                                        "completed": false,
                                        "list": {
                                            "uuid": "f0e1d2c3-...",
                                            "name": "In Progress"
                                        },
                                        "comments": [],
                                        "created_at": "2024-01-01T10:00:00Z"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "operationId": "todos-update",
                "summary": "Todo aktualisieren",
                "description": "Aktualisiert ein bestehendes Todo. Alle Felder sind optional, nur gesendete Felder werden geändert. list_id:null ist nicht zulässig; zum expliziten Lösen vom Board dient der Detach-Endpoint. Validierungsfehler liefern HTTP 422 mit message und errors. Bei einer Serie (Todo mit recurring_interval) erledigt completed:true nur die aktuelle Wiederholung: Das Todo bleibt offen, sein due_date rückt um ein Intervall vor, und die erledigte Wiederholung wird als eigenes, erledigtes Todo abgelegt. data ist immer das adressierte Todo, bei einer Serie also weiterhin mit completed:false und dem neuen due_date. Die erledigte Wiederholung steht daneben im Antwortfeld completed_occurrence; in allen anderen Fällen ist es null. Wieder öffnen (completed:false) wirkt auf einfache Todos und auf erledigte Wiederholungen, die Serie selbst ist nie erledigt. Das due_date einer Serie lässt sich nicht direkt ändern (HTTP 422). Ein wiederholter Aufruf würde auch die nächste Wiederholung erledigen: Wer expected_due_date mitsendet, erhält stattdessen HTTP 409 mit dem aktuellen Termin in current_due_date, sobald die Serie bereits weitergerückt ist.",
                "tags": [
                    "todos"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "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": "550e8400-e29b-41d4-a716-446655440000",
                                        "title": "Feature implementieren (aktualisiert)",
                                        "priority": "high",
                                        "completed": true,
                                        "recurring_interval": null
                                    },
                                    "completed_occurrence": null,
                                    "message": "Todo updated successfully."
                                }
                            }
                        }
                    },
                    "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 (falls gesendet: required, max. 255 Zeichen)"
                                    },
                                    "description": {
                                        "type": "string",
                                        "description": "Beschreibung (max. 65.535 Zeichen)"
                                    },
                                    "due_date": {
                                        "type": "string",
                                        "description": "Fälligkeitsdatum"
                                    },
                                    "priority": {
                                        "type": "string",
                                        "description": "Priorität: low, medium, high"
                                    },
                                    "list_id": {
                                        "type": "string",
                                        "description": "UUID der neuen Ziel-Liste (verschiebt das Todo)"
                                    },
                                    "assigned_to": {
                                        "type": "string",
                                        "description": "UUID des zugewiesenen Benutzers (wird ignoriert, wenn assigned_to_ids gesendet ist)"
                                    },
                                    "assigned_to_ids": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Array von Benutzer-UUIDs; ersetzt die komplette Zuweisungsliste"
                                    },
                                    "completed": {
                                        "type": "boolean",
                                        "description": "true erledigt das Todo, false öffnet es wieder. Bei einer Serie erledigt true nur die aktuelle Wiederholung"
                                    },
                                    "recurring_interval": {
                                        "type": "string",
                                        "description": "Wiederholungsintervall: daily, every_2_days, weekly, every_2_weeks, monthly, every_2_months, quarterly, half_yearly, yearly. Erfordert ein due_date; null beendet die Serie"
                                    },
                                    "expected_due_date": {
                                        "type": "string",
                                        "description": "Nur beim Erledigen einer Serie: der Termin (JJJJ-MM-TT), den der Aufrufer gerade sieht. Weicht er vom aktuellen due_date ab, antwortet der Endpoint mit HTTP 409 und erledigt nichts"
                                    },
                                    "card_settings": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Card-Darstellung; erlaubte Keys: color (max. 32 Zeichen), labels (max. 50 Strings)"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "todos-delete",
                "summary": "Todo löschen",
                "description": "Löscht ein Todo unwiderruflich.",
                "tags": [
                    "todos"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Todo deleted successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/duplicate": {
            "post": {
                "operationId": "todos-duplicate",
                "summary": "Todo duplizieren",
                "description": "Erstellt eine Kopie eines Todos. Checklisten, Labels und Zuweisungen werden standardmäßig mitkopiert; über die Body-Parameter abschaltbar.",
                "tags": [
                    "todos"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "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": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
                                        "title": "Feature implementieren",
                                        "priority": "high",
                                        "completed": false
                                    },
                                    "message": "Todo duplicated successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "include_checklists": {
                                        "type": "boolean",
                                        "description": "Checklisten mitkopieren (Default true)"
                                    },
                                    "include_labels": {
                                        "type": "boolean",
                                        "description": "Labels mitkopieren (Default true)"
                                    },
                                    "include_assignments": {
                                        "type": "boolean",
                                        "description": "Zugewiesene Benutzer mitkopieren (Default true)"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/move": {
            "put": {
                "operationId": "todos-move",
                "summary": "Todo verschieben",
                "description": "Verschiebt ein Todo in eine andere Board-Liste, mit position an einen Index unter den offenen Todos (lückenlos neu nummeriert). Erfordert Zugriff auf das Board der Ziel-Liste. sort_order und position zusammen ergeben HTTP 422, position für ein erledigtes Todo ebenfalls.",
                "tags": [
                    "todos"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "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": "550e8400-e29b-41d4-a716-446655440000",
                                        "title": "Feature implementieren",
                                        "list": {
                                            "uuid": "1a2b3c4d-...",
                                            "name": "Done"
                                        }
                                    },
                                    "message": "Todo moved successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "list_uuid": {
                                        "type": "string",
                                        "description": "UUID der Ziel-Liste"
                                    },
                                    "position": {
                                        "type": "integer",
                                        "description": "Index unter den offenen Todos der Ziel-Liste ab 0 (0 = oben), gezählt ohne das verschobene Todo. Ein Index hinter dem Ende hängt an. Quell- und Ziel-Liste werden lückenlos ab 1 neu nummeriert. Nur für offene Todos, nicht zusammen mit sort_order."
                                    },
                                    "sort_order": {
                                        "type": "integer",
                                        "description": "Roher Sortierwert in der Ziel-Liste; Todos ab diesem Wert rücken um eins nach (bisheriges Verhalten, sonst automatisch ans Ende gesetzt). Nicht zusammen mit position."
                                    }
                                },
                                "required": [
                                    "list_uuid"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/detach": {
            "post": {
                "operationId": "todos-detach",
                "summary": "Todo vom Board lösen",
                "description": "Löst ein Board-Todo explizit und mit Audit-Log vom Board und überführt es in die persönliche Todo-Liste des Board-Owners. Nur der aktuelle Board-Owner darf diese Aktion ausführen; sichtbare Ressourcen mit unzureichender Rolle liefern HTTP 403, nicht zugängliche Ressourcen HTTP 404.",
                "tags": [
                    "todos"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "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": "550e8400-e29b-41d4-a716-446655440000",
                                        "title": "Feature implementieren",
                                        "list": null
                                    },
                                    "message": "Todo detached from board successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards": {
            "get": {
                "operationId": "boards-list",
                "summary": "Boards auflisten",
                "description": "Ruft die Boards ab, auf die der authentifizierte Benutzer Zugriff hat (nicht alle Boards des Teams), inklusive verschachtelter Listen. Cursor-paginiert.",
                "tags": [
                    "boards"
                ],
                "parameters": [
                    {
                        "name": "cursor",
                        "in": "query",
                        "required": false,
                        "description": "Cursor aus dem meta-Objekt der vorherigen Antwort für die nächste/vorherige Seite",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Ergebnisse pro Seite, 1-100 (Default 50)",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "a1b2c3d4-...",
                                            "name": "Projekt Alpha",
                                            "description": null,
                                            "background_settings": {
                                                "color": "#0ea5e9"
                                            },
                                            "is_archived": false,
                                            "sort_order": 1,
                                            "lists": [
                                                {
                                                    "uuid": "f0e1d2c3-...",
                                                    "name": "Backlog"
                                                },
                                                {
                                                    "uuid": "1a2b3c4d-...",
                                                    "name": "In Progress"
                                                }
                                            ],
                                            "created_at": "2024-01-01T10:00:00Z"
                                        }
                                    ],
                                    "meta": {
                                        "next_cursor": "eyJpZCI6MTIzfQ==",
                                        "prev_cursor": null,
                                        "has_more": false,
                                        "per_page": 50
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "boards-create",
                "summary": "Board erstellen",
                "description": "Erstellt ein neues Board. Der erstellende Benutzer wird automatisch als Owner eingetragen.",
                "tags": [
                    "boards"
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "a1b2c3d4-...",
                                        "name": "Projekt Alpha",
                                        "description": null,
                                        "background_settings": [],
                                        "is_archived": false,
                                        "sort_order": 1,
                                        "users_with_access": [
                                            {
                                                "uuid": "9c858901-8a57-4791-81fe-4c455b099bc9",
                                                "name": "Maria Beispiel"
                                            }
                                        ],
                                        "created_at": "2024-01-01T10:00:00Z"
                                    },
                                    "message": "Board created successfully."
                                }
                            }
                        }
                    },
                    "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 Boards (max. 255 Zeichen)"
                                    },
                                    "description": {
                                        "type": "string",
                                        "description": "Beschreibung (max. 65.535 Zeichen)"
                                    },
                                    "background_settings": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Hintergrund/Darstellung; erlaubte Keys: color (max. 32 Zeichen), image (max. 2.048 Zeichen)"
                                    },
                                    "project_id": {
                                        "type": "string",
                                        "description": "UUID eines FlowCRM-Projekts, mit dem das Board verknüpft werden soll"
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}": {
            "get": {
                "operationId": "boards-show",
                "summary": "Board abrufen",
                "description": "Ruft ein einzelnes Board mit dem vollständigen Baum ab: Listen -> Todos -> zugewiesene Benutzer + Labels, inklusive Statistiken (total_todos, completed_todos, progress_percentage) und der Liste der Benutzer mit Zugriff.",
                "tags": [
                    "boards"
                ],
                "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": "a1b2c3d4-...",
                                        "name": "Projekt Alpha",
                                        "description": null,
                                        "background_settings": {
                                            "color": "#0ea5e9"
                                        },
                                        "is_archived": false,
                                        "sort_order": 1,
                                        "total_todos": 12,
                                        "completed_todos": 5,
                                        "progress_percentage": 42,
                                        "lists": [
                                            {
                                                "uuid": "f0e1d2c3-...",
                                                "name": "Backlog",
                                                "todos": []
                                            }
                                        ],
                                        "users_with_access": [
                                            {
                                                "uuid": "9c858901-8a57-4791-81fe-4c455b099bc9",
                                                "name": "Maria Beispiel",
                                                "email": "maria@example.com"
                                            }
                                        ],
                                        "created_at": "2024-01-01T10:00:00Z"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "operationId": "boards-update",
                "summary": "Board aktualisieren",
                "description": "Aktualisiert Name, Beschreibung oder Hintergrund-Einstellungen eines Boards. Alle Felder sind optional, nur gesendete Felder werden geändert.",
                "tags": [
                    "boards"
                ],
                "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": "a1b2c3d4-...",
                                        "name": "Projekt Alpha (aktualisiert)",
                                        "description": "Neue Beschreibung",
                                        "is_archived": false
                                    },
                                    "message": "Board updated successfully."
                                }
                            }
                        }
                    },
                    "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 (falls gesendet: required, max. 255 Zeichen)"
                                    },
                                    "description": {
                                        "type": "string",
                                        "description": "Beschreibung (max. 65.535 Zeichen)"
                                    },
                                    "background_settings": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Hintergrund/Darstellung; erlaubte Keys: color (max. 32 Zeichen), image (max. 2.048 Zeichen)"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "boards-delete",
                "summary": "Board löschen",
                "description": "Löscht ein Board unwiderruflich, kaskadierend über Listen, Todos, Zugriffsrechte und externe Freigaben. Owner-exklusiv: nur der Owner des Boards darf löschen; Admin und Member erhalten HTTP 403 (\"You do not have permission to perform this action on this board.\").",
                "tags": [
                    "boards"
                ],
                "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": "Board deleted successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/archive": {
            "put": {
                "operationId": "boards-archive",
                "summary": "Board archivieren/entarchivieren",
                "description": "Schaltet den Archiv-Status eines Boards um (archiviert -> aktiv oder umgekehrt). Erfordert lediglich Board-Zugriff, kein Rollen-Gate.",
                "tags": [
                    "boards"
                ],
                "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": "a1b2c3d4-...",
                                        "name": "Projekt Alpha",
                                        "is_archived": true
                                    },
                                    "message": "Board archived successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/users": {
            "get": {
                "operationId": "boards-users-list",
                "summary": "Board-Mitglieder auflisten",
                "description": "Ruft alle Benutzer mit Zugriff auf ein Board ab.",
                "tags": [
                    "boards"
                ],
                "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": "9c858901-8a57-4791-81fe-4c455b099bc9",
                                            "name": "Maria Beispiel",
                                            "email": "maria@example.com"
                                        }
                                    ],
                                    "count": 1
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "boards-users-grant",
                "summary": "Board-Zugriff gewähren",
                "description": "Gewährt einem Team-Mitglied Zugriff auf ein Board. Neue oder wiederhergestellte Grants liefern HTTP 201; ein bereits aktiver, idempotenter Grant liefert HTTP 200. Neue Grants erhalten immer die Rolle Member; Rollenänderungen erfolgen ausschließlich über den role-Endpoint. Nur Owner oder Admin dürfen Zugriff gewähren; Member erhalten HTTP 403.",
                "tags": [
                    "boards"
                ],
                "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": "User access granted successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "user_uuid": {
                                        "type": "string",
                                        "description": "UUID des Team-Mitglieds, dem Zugriff gewährt werden soll"
                                    }
                                },
                                "required": [
                                    "user_uuid"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/users/{userUuid}": {
            "delete": {
                "operationId": "boards-users-revoke",
                "summary": "Board-Zugriff entziehen",
                "description": "Entzieht einem Benutzer den Zugriff auf ein Board. Nur Owner oder Admin dürfen den Zugriff eines ANDEREN Mitglieds entziehen (sonst HTTP 403 \"You do not have permission to perform this action on this board.\"); jedes Mitglied darf jedoch seinen EIGENEN Zugriff entziehen (Selbst-Entfernung). Ausnahme: der Owner kann sich nicht selbst entfernen und muss die Ownership zuerst übertragen (HTTP 403 \"The board Owner cannot remove their own access. Transfer ownership first.\"); ebenso kann der Owner niemals über diesen Endpoint durch andere entfernt werden.",
                "tags": [
                    "boards"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "userUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "User access revoked successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/users/{userUuid}/role": {
            "put": {
                "operationId": "boards-users-update-role",
                "summary": "Board-Rolle ändern / Ownership übertragen",
                "description": "Owner-exklusive Aktion: nur der Owner des Boards darf Rollen ändern oder die Ownership übertragen - Admin und Member erhalten HTTP 403 (\"You do not have permission to perform this action on this board.\"). role=admin oder role=member ändert die Rolle des Zielbenutzers (\"User role updated successfully.\"). role=owner überträgt die Ownership atomar: der Zielbenutzer wird Owner, der bisherige Owner wird automatisch zu Admin herabgestuft (\"Board ownership transferred successfully.\"). Fehlerfälle: HTTP 404 wenn Board oder Zielbenutzer nicht gefunden werden, HTTP 422 wenn der Zielbenutzer keinen aktiven Board-Zugriff hat, HTTP 422 wenn der Owner versucht sich selbst die Ownership zu übertragen (\"You are already the Owner of this board.\"), HTTP 422 wenn versucht wird den Owner direkt via role=admin/member herabzustufen (stattdessen role=owner auf einen anderen Zielbenutzer nutzen, um die Ownership zu übertragen), sowie HTTP 409 wenn die Ownership-Übertragung durch eine gleichzeitige Änderung der Berechtigungen des aufrufenden Owners blockiert wurde (\"Ownership changed concurrently. Please retry.\" - Retry empfohlen).",
                "tags": [
                    "boards"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "userUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "User role updated successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "role": {
                                        "type": "string",
                                        "description": "Neue Rolle: admin, member oder owner (owner löst eine Ownership-Übertragung aus)"
                                    }
                                },
                                "required": [
                                    "role"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/lists": {
            "post": {
                "operationId": "lists-create",
                "summary": "Liste erstellen",
                "description": "Erstellt eine neue Liste in einem Board. Erfordert Board-Zugriff.",
                "tags": [
                    "lists"
                ],
                "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": "f0e1d2c3-...",
                                        "name": "Backlog",
                                        "sort_order": 1,
                                        "list_settings": [],
                                        "is_archived": false
                                    },
                                    "message": "List created successfully."
                                }
                            }
                        }
                    },
                    "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 der Liste (max. 255 Zeichen)"
                                    },
                                    "list_settings": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Listen-Darstellung; erlaubte Keys: color (max. 32 Zeichen), label (max. 255 Zeichen)"
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                }
            },
            "get": {
                "operationId": "lists-index",
                "summary": "Listen eines Boards auflisten",
                "description": "Ruft die Listen eines Boards seitenweise ab, jeweils mit der Anzahl ihrer Todos. Anders als der Board-Baum liefert diese Route nur die Spalten und bleibt damit auch bei tausenden Karten nutzbar.",
                "tags": [
                    "lists"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "archived",
                        "in": "query",
                        "required": false,
                        "description": "Grenzt auf archivierte (true) oder aktive (false) Listen ein",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Seitenzahl, ab 1",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Einträge pro Seite, 1-200 (Standard 50)",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "f0e1d2c3-...",
                                            "board_uuid": "a1b2c3d4-...",
                                            "name": "Backlog",
                                            "sort_order": 1,
                                            "is_archived": false,
                                            "todos_count": 12
                                        }
                                    ],
                                    "meta": {
                                        "current_page": 1,
                                        "per_page": 50,
                                        "total": 3,
                                        "last_page": 1
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/lists/{listUuid}": {
            "get": {
                "operationId": "lists-show",
                "summary": "Liste abrufen",
                "description": "Ruft eine einzelne Liste mit ihren Todos (inklusive zugewiesener Benutzer und Labels) ab. Dies ist der reale Endpoint zum Abrufen einer einzelnen Liste - es existiert kein Endpoint zum Auflisten aller Listen eines Boards separat vom Board selbst (dafür GET /todos/boards/{uuid}, das Board inklusive aller Listen liefert).",
                "tags": [
                    "lists"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "listUuid",
                        "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": "f0e1d2c3-...",
                                        "name": "Backlog",
                                        "sort_order": 1,
                                        "list_settings": [],
                                        "is_archived": false,
                                        "todos": [
                                            {
                                                "uuid": "550e8400-e29b-41d4-a716-446655440000",
                                                "title": "Feature implementieren",
                                                "priority": "high",
                                                "completed": false
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "operationId": "lists-update",
                "summary": "Liste aktualisieren",
                "description": "Aktualisiert Name oder list_settings einer Liste. Alle Felder sind optional, nur gesendete Felder werden geändert.",
                "tags": [
                    "lists"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "listUuid",
                        "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": "f0e1d2c3-...",
                                        "name": "Backlog (umbenannt)",
                                        "sort_order": 1,
                                        "is_archived": false
                                    },
                                    "message": "List updated successfully."
                                }
                            }
                        }
                    },
                    "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 (falls gesendet: required, max. 255 Zeichen)"
                                    },
                                    "list_settings": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Listen-Darstellung; erlaubte Keys: color (max. 32 Zeichen), label (max. 255 Zeichen)"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "lists-delete",
                "summary": "Liste löschen",
                "description": "Löscht eine Liste unwiderruflich; kaskadiert auf alle Todos der Liste.",
                "tags": [
                    "lists"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "listUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "List deleted successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/lists/{listUuid}/todos/reorder": {
            "put": {
                "operationId": "lists-todos-reorder",
                "summary": "Todos einer Liste neu anordnen",
                "description": "Ordnet die Todos einer Liste anhand der übergebenen UUID-Reihenfolge neu an. Das Array muss jedes Todo der Liste genau einmal enthalten; fehlende oder fremde UUIDs liefern HTTP 422 mit skipped und verändern keine Sortierung.",
                "tags": [
                    "lists"
                ],
                "parameters": [
                    {
                        "name": "listUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Todos reordered successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "todo_uuids": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Array aller Todo-UUIDs der Liste in der gewünschten Reihenfolge"
                                    }
                                },
                                "required": [
                                    "todo_uuids"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/lists/reorder": {
            "put": {
                "operationId": "lists-reorder",
                "summary": "Listen neu anordnen",
                "description": "Ordnet alle Listen eines Boards atomar und kollisionsfrei anhand der übergebenen UUID-Reihenfolge neu an. Das Array muss jede Board-Liste genau einmal enthalten; fehlende oder fremde UUIDs liefern HTTP 422 mit skipped und verändern keine Sortierung.",
                "tags": [
                    "lists"
                ],
                "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": "Lists reordered successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "list_uuids": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Array aller Listen-UUIDs des Boards in der gewünschten Reihenfolge"
                                    }
                                },
                                "required": [
                                    "list_uuids"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/lists/{listUuid}/archive": {
            "put": {
                "operationId": "lists-archive",
                "summary": "Liste archivieren/entarchivieren",
                "description": "Schaltet den Archiv-Status einer Liste um (archiviert -> aktiv oder umgekehrt).",
                "tags": [
                    "lists"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "listUuid",
                        "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": "f0e1d2c3-...",
                                        "name": "Backlog",
                                        "is_archived": true
                                    },
                                    "message": "List archived successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/assignments": {
            "get": {
                "operationId": "todos-assignments-list",
                "summary": "Zuweisungen auflisten",
                "description": "Ruft alle Benutzer ab, die einem Todo aktuell zugewiesen sind.",
                "tags": [
                    "assignments"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "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": "9c858901-8a57-4791-81fe-4c455b099bc9",
                                            "name": "Maria Beispiel",
                                            "email": "maria@example.com"
                                        }
                                    ],
                                    "count": 1
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "todos-assignments-add",
                "summary": "Benutzer zuweisen",
                "description": "Weist einem Todo einen weiteren Benutzer zu (additiv, bestehende Zuweisungen bleiben erhalten). Der Benutzer muss Mitglied des Teams sein.",
                "tags": [
                    "assignments"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "User assigned successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "user_uuid": {
                                        "type": "string",
                                        "description": "UUID des zuzuweisenden Team-Mitglieds"
                                    }
                                },
                                "required": [
                                    "user_uuid"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/assignments/{userUuid}": {
            "delete": {
                "operationId": "todos-assignments-remove",
                "summary": "Zuweisung entfernen",
                "description": "Entfernt die Zuweisung eines Benutzers von einem Todo.",
                "tags": [
                    "assignments"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "userUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "User assignment removed successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/comments": {
            "get": {
                "operationId": "todos-comments-list",
                "summary": "Kommentare auflisten",
                "description": "Ruft alle Kommentare eines Todos ab, chronologisch aufsteigend sortiert.",
                "tags": [
                    "comments"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "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": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                                            "comment": "Bitte bis Freitag erledigen.",
                                            "user": {
                                                "uuid": "9c858901-8a57-4791-81fe-4c455b099bc9",
                                                "name": "Maria Beispiel"
                                            },
                                            "created_at": "2024-01-01T10:00:00Z"
                                        }
                                    ],
                                    "count": 1
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "todos-comments-create",
                "summary": "Kommentar hinzufügen",
                "description": "Fügt einem Todo einen neuen Kommentar hinzu.",
                "tags": [
                    "comments"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "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": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                                        "comment": "Bitte bis Freitag erledigen.",
                                        "created_at": "2024-01-01T10:00:00Z"
                                    },
                                    "message": "Comment added successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "comment": {
                                        "type": "string",
                                        "description": "Kommentartext (max. 1000 Zeichen)"
                                    }
                                },
                                "required": [
                                    "comment"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/comments/{commentUuid}": {
            "put": {
                "operationId": "todos-comments-update",
                "summary": "Kommentar bearbeiten",
                "description": "Bearbeitet einen Kommentar. Nur der ursprüngliche Autor darf seinen eigenen Kommentar bearbeiten - andernfalls antwortet die API mit HTTP 403 \"You can only edit your own comments.\"",
                "tags": [
                    "comments"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "commentUuid",
                        "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": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                                        "comment": "Bitte bis Montag erledigen.",
                                        "created_at": "2024-01-01T10:00:00Z"
                                    },
                                    "message": "Comment updated successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "comment": {
                                        "type": "string",
                                        "description": "Neuer Kommentartext (max. 1000 Zeichen)"
                                    }
                                },
                                "required": [
                                    "comment"
                                ]
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "todos-comments-delete",
                "summary": "Kommentar löschen",
                "description": "Löscht einen Kommentar unwiderruflich. Nur der ursprüngliche Autor darf seinen eigenen Kommentar löschen - andernfalls antwortet die API mit HTTP 403 \"You can only delete your own comments.\"",
                "tags": [
                    "comments"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "commentUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Comment deleted successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/labels": {
            "get": {
                "operationId": "labels-list",
                "summary": "Labels auflisten",
                "description": "Ruft alle Labels des Teams cursor-paginiert ab, sortiert nach sort_order.",
                "tags": [
                    "labels"
                ],
                "parameters": [
                    {
                        "name": "cursor",
                        "in": "query",
                        "required": false,
                        "description": "Cursor aus dem meta-Objekt der vorherigen Antwort für die nächste/vorherige Seite",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Ergebnisse pro Seite, 1-100 (Default 50)",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "b2c3d4e5-...",
                                            "name": "Dringend",
                                            "color": "red",
                                            "sort_order": 1
                                        }
                                    ],
                                    "meta": {
                                        "next_cursor": "eyJpZCI6MTIzfQ==",
                                        "prev_cursor": null,
                                        "has_more": false,
                                        "per_page": 50
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "labels-create",
                "summary": "Label erstellen",
                "description": "Erstellt ein neues, team-weites Label.",
                "tags": [
                    "labels"
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "b2c3d4e5-...",
                                        "name": "Dringend",
                                        "color": "red",
                                        "sort_order": 5
                                    },
                                    "message": "Label created successfully."
                                }
                            }
                        }
                    },
                    "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 Labels (max. 255 Zeichen)"
                                    },
                                    "color": {
                                        "type": "string",
                                        "description": "Farbe des Labels. Erlaubte Werte: zinc, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose."
                                    }
                                },
                                "required": [
                                    "name",
                                    "color"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/labels/{labelUuid}": {
            "get": {
                "operationId": "labels-show",
                "summary": "Label abrufen",
                "description": "Ruft ein einzelnes Label des Teams ab, inklusive der Anzahl der Todos, die es tragen.",
                "tags": [
                    "labels"
                ],
                "parameters": [
                    {
                        "name": "labelUuid",
                        "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": "b2c3d4e5-...",
                                        "name": "Dringend",
                                        "color": "red",
                                        "sort_order": 5,
                                        "todos_count": 7
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "operationId": "labels-update",
                "summary": "Label aktualisieren",
                "description": "Aktualisiert Name oder Farbe eines Labels. Alle Felder sind optional, nur gesendete Felder werden geändert.",
                "tags": [
                    "labels"
                ],
                "parameters": [
                    {
                        "name": "labelUuid",
                        "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": "b2c3d4e5-...",
                                        "name": "Dringend (aktualisiert)",
                                        "color": "orange",
                                        "sort_order": 5
                                    },
                                    "message": "Label updated successfully."
                                }
                            }
                        }
                    },
                    "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 (falls gesendet: required, max. 255 Zeichen)"
                                    },
                                    "color": {
                                        "type": "string",
                                        "description": "Farbe (falls gesendet: required). Erlaubte Werte: zinc, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose."
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "labels-delete",
                "summary": "Label löschen",
                "description": "Löscht ein Label (Soft-Delete). Ein Model-Boot-Event hängt das Label vorher von allen Todos ab.",
                "tags": [
                    "labels"
                ],
                "parameters": [
                    {
                        "name": "labelUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Label deleted successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/labels": {
            "get": {
                "operationId": "todos-labels-list",
                "summary": "Labels eines Todos auflisten",
                "description": "Ruft alle Labels ab, die an ein bestimmtes Todo angehängt sind.",
                "tags": [
                    "labels"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "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": "b2c3d4e5-...",
                                            "name": "Dringend",
                                            "color": "red",
                                            "sort_order": 1
                                        }
                                    ],
                                    "count": 1
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "todos-labels-attach",
                "summary": "Labels an Todo anhängen",
                "description": "Hängt ein oder mehrere Labels additiv an ein Todo an und liefert bei Erfolg HTTP 201. Wenn sich eine UUID nicht auf ein Team-Label auflösen lässt, antwortet der Endpoint mit HTTP 422 und skipped; es werden dann keine Labels angehängt.",
                "tags": [
                    "labels"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "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": "b2c3d4e5-...",
                                            "name": "Dringend",
                                            "color": "red",
                                            "sort_order": 1
                                        }
                                    ],
                                    "message": "Labels attached successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "label_uuids": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Array von Label-UUIDs (mindestens 1 Eintrag)"
                                    }
                                },
                                "required": [
                                    "label_uuids"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/labels/{labelUuid}": {
            "delete": {
                "operationId": "todos-labels-detach",
                "summary": "Label von Todo entfernen",
                "description": "Entfernt ein einzelnes Label von einem Todo (das Label selbst bleibt für das Team bestehen).",
                "tags": [
                    "labels"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "labelUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Label removed from todo."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/checklists": {
            "get": {
                "operationId": "checklists-list",
                "summary": "Checklisten auflisten",
                "description": "Ruft alle Checklisten eines Todos inklusive ihrer Items und Fortschritt (progress_percentage, total_items_count, completed_items_count) ab.",
                "tags": [
                    "checklists"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "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": "c3d4e5f6-...",
                                            "name": "Vorbereitung",
                                            "sort_order": 1,
                                            "progress_percentage": 50,
                                            "total_items_count": 2,
                                            "completed_items_count": 1,
                                            "items": [
                                                {
                                                    "uuid": "d4e5f6a7-...",
                                                    "content": "Kickoff-Meeting planen",
                                                    "completed": false,
                                                    "sort_order": 1,
                                                    "assignedUser": null
                                                }
                                            ]
                                        }
                                    ],
                                    "count": 1
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "checklists-create",
                "summary": "Checkliste erstellen",
                "description": "Erstellt eine neue Checkliste auf einem Todo.",
                "tags": [
                    "checklists"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "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": "c3d4e5f6-...",
                                        "name": "Vorbereitung",
                                        "sort_order": 1,
                                        "progress_percentage": 0,
                                        "total_items_count": 0,
                                        "completed_items_count": 0,
                                        "items": []
                                    },
                                    "message": "Checklist created successfully."
                                }
                            }
                        }
                    },
                    "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 der Checkliste (max. 255 Zeichen)"
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/checklists/{checklistUuid}": {
            "get": {
                "operationId": "checklists-show",
                "summary": "Checkliste abrufen",
                "description": "Ruft eine einzelne Checkliste eines Todos mit allen Zeilen und dem Fortschritt ab.",
                "tags": [
                    "checklists"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "checklistUuid",
                        "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": "c3d4e5f6-...",
                                        "todo_uuid": "550e8400-...",
                                        "name": "Vorbereitung",
                                        "sort_order": 1,
                                        "total_items_count": 2,
                                        "completed_items_count": 1,
                                        "progress_percentage": 50,
                                        "items": [
                                            {
                                                "uuid": "d4e5f6a7-...",
                                                "content": "Kickoff planen",
                                                "completed": false,
                                                "assigned_to_uuid": null
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "operationId": "checklists-update",
                "summary": "Checkliste aktualisieren",
                "description": "Aktualisiert Name oder sort_order einer Checkliste. Alle Felder sind optional, nur gesendete Felder werden geändert.",
                "tags": [
                    "checklists"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "checklistUuid",
                        "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": "c3d4e5f6-...",
                                        "name": "Vorbereitung (aktualisiert)",
                                        "sort_order": 2,
                                        "progress_percentage": 50
                                    },
                                    "message": "Checklist updated successfully."
                                }
                            }
                        }
                    },
                    "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 (falls gesendet: required, max. 255 Zeichen)"
                                    },
                                    "sort_order": {
                                        "type": "integer",
                                        "description": "Expliziter Sortier-Index"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "checklists-delete",
                "summary": "Checkliste löschen",
                "description": "Löscht eine Checkliste unwiderruflich, inklusive aller ihrer Items.",
                "tags": [
                    "checklists"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "checklistUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Checklist deleted successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/checklists/reorder": {
            "put": {
                "operationId": "checklists-reorder",
                "summary": "Checklisten neu anordnen",
                "description": "Ordnet die Checklisten eines Todos anhand der übergebenen UUID-Reihenfolge neu an. Das Array muss jede Checkliste des Todos genau einmal enthalten; fehlende oder fremde UUIDs liefern HTTP 422 mit skipped und verändern keine Sortierung.",
                "tags": [
                    "checklists"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Checklists reordered successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "checklist_uuids": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Array aller Checklisten-UUIDs des Todos in der gewünschten Reihenfolge"
                                    }
                                },
                                "required": [
                                    "checklist_uuids"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/checklists/{checklistUuid}/items": {
            "get": {
                "operationId": "checklists-items-list",
                "summary": "Checklisten-Items auflisten",
                "description": "Ruft die Zeilen einer Checkliste seitenweise ab, optional nur die erledigten oder nur die offenen.",
                "tags": [
                    "checklists"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "checklistUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "completed",
                        "in": "query",
                        "required": false,
                        "description": "Grenzt auf erledigte (true) oder offene (false) Zeilen ein",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Seitenzahl, ab 1",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Einträge pro Seite, 1-200 (Standard 50)",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "d4e5f6a7-...",
                                            "checklist_uuid": "c3d4e5f6-...",
                                            "content": "Kickoff planen",
                                            "completed": false,
                                            "assigned_to_uuid": null,
                                            "sort_order": 1
                                        }
                                    ],
                                    "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": "checklists-items-create",
                "summary": "Checklisten-Item erstellen",
                "description": "Fügt einer Checkliste ein neues Item hinzu. Wird assigned_to gesendet, muss die UUID einem Team-Mitglied entsprechen - andernfalls antwortet die API mit HTTP 404 \"Assigned user not found or not a team member.\"",
                "tags": [
                    "checklists"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "checklistUuid",
                        "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": "d4e5f6a7-...",
                                        "content": "Kickoff-Meeting planen",
                                        "completed": false,
                                        "sort_order": 1,
                                        "assignedUser": {
                                            "uuid": "9c858901-8a57-4791-81fe-4c455b099bc9",
                                            "name": "Maria Beispiel",
                                            "email": "maria@example.com"
                                        }
                                    },
                                    "message": "Checklist item created successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "content": {
                                        "type": "string",
                                        "description": "Text des Items (max. 500 Zeichen)"
                                    },
                                    "assigned_to": {
                                        "type": "string",
                                        "description": "UUID des zugewiesenen Team-Mitglieds"
                                    }
                                },
                                "required": [
                                    "content"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/checklists/{checklistUuid}/items/reorder": {
            "put": {
                "operationId": "checklists-items-reorder",
                "summary": "Checklisten-Items neu anordnen",
                "description": "Ordnet die Zeilen einer Checkliste anhand der übergebenen UUID-Reihenfolge neu an. Das Array muss jede Zeile der Checkliste genau einmal enthalten; fehlende oder fremde UUIDs liefern HTTP 422 mit skipped und verändern keine Sortierung.",
                "tags": [
                    "checklists"
                ],
                "parameters": [
                    {
                        "name": "checklistUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Checklist items reordered successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "item_uuids": {
                                        "type": "array",
                                        "items": [],
                                        "description": "Array aller Item-UUIDs der Checkliste in der gewünschten Reihenfolge"
                                    }
                                },
                                "required": [
                                    "item_uuids"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/checklists/{checklistUuid}/items/{itemUuid}": {
            "put": {
                "operationId": "checklists-items-update",
                "summary": "Checklisten-Item aktualisieren",
                "description": "Aktualisiert Text oder Zuweisung eines Checklisten-Items. Alle Felder sind optional, nur gesendete Felder werden geändert; assigned_to=null entfernt eine bestehende Zuweisung.",
                "tags": [
                    "checklists"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "checklistUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "itemUuid",
                        "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": "d4e5f6a7-...",
                                        "content": "Kickoff-Meeting vorbereiten",
                                        "completed": false,
                                        "sort_order": 1,
                                        "assignedUser": null
                                    },
                                    "message": "Checklist item updated successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "content": {
                                        "type": "string",
                                        "description": "Text (falls gesendet: required, max. 500 Zeichen)"
                                    },
                                    "assigned_to": {
                                        "type": "string",
                                        "description": "UUID des zugewiesenen Team-Mitglieds, oder null um die Zuweisung zu entfernen"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "checklists-items-delete",
                "summary": "Checklisten-Item löschen",
                "description": "Löscht ein Checklisten-Item unwiderruflich.",
                "tags": [
                    "checklists"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "checklistUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "itemUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "Checklist item deleted successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/checklists/{checklistUuid}/items/{itemUuid}/toggle": {
            "put": {
                "operationId": "checklists-items-toggle",
                "summary": "Checklisten-Item umschalten",
                "description": "Schaltet den Erledigt-Status eines Checklisten-Items um (nicht erledigt -> erledigt oder umgekehrt). Die Message unterscheidet sich je nach neuem Status: \"Checklist item marked complete.\" bzw. \"Checklist item marked incomplete.\"",
                "tags": [
                    "checklists"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "checklistUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "itemUuid",
                        "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": "d4e5f6a7-...",
                                        "content": "Kickoff-Meeting planen",
                                        "completed": true,
                                        "sort_order": 1,
                                        "assignedUser": null
                                    },
                                    "message": "Checklist item marked complete."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/access": {
            "get": {
                "operationId": "boards-access-show",
                "summary": "Zugriffe eines Boards abrufen",
                "description": "Liefert die Mitglieder des Boards mit ihren Rollen, die eigene Rolle, den Zustand der externen Freigabe und, für Konten mit Administrationsrechten, die eingeladenen Gäste samt Freigabe-Adresse.",
                "tags": [
                    "sharing"
                ],
                "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": {
                                        "board_uuid": "a1b2c3d4-...",
                                        "is_shared": true,
                                        "can_manage_access": true,
                                        "own_role": "owner",
                                        "members": [
                                            {
                                                "user_uuid": "e5f6a7b8-...",
                                                "name": "Anna",
                                                "role": "owner"
                                            }
                                        ],
                                        "share_url": "https://app.example.com/share/board/…",
                                        "external_invites": [
                                            {
                                                "uuid": "9f8e7d6c-...",
                                                "name": "Gast",
                                                "email": "gast@example.com"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/sharing/enable": {
            "post": {
                "operationId": "boards-sharing-enable",
                "summary": "Externe Freigabe aktivieren",
                "description": "Schaltet die externe Freigabe des Boards ein und erzeugt dabei eine Freigabe-Adresse. Ein bereits freigegebenes Board behält seine Adresse.",
                "tags": [
                    "sharing"
                ],
                "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": {
                                        "board_uuid": "a1b2c3d4-...",
                                        "is_shared": true,
                                        "share_url": "https://app.example.com/share/board/…"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/sharing/disable": {
            "post": {
                "operationId": "boards-sharing-disable",
                "summary": "Externe Freigabe deaktivieren",
                "description": "Schaltet die externe Freigabe ab und verwirft die Freigabe-Adresse. Bereits eingeladene Gäste erreichen das Board danach nicht mehr.",
                "tags": [
                    "sharing"
                ],
                "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": {
                                        "board_uuid": "a1b2c3d4-...",
                                        "is_shared": false,
                                        "share_url": null
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/sharing/rotate": {
            "post": {
                "operationId": "boards-sharing-rotate",
                "summary": "Freigabe-Adresse erneuern",
                "description": "Ersetzt die Freigabe-Adresse durch eine neue. Jede zuvor verteilte Adresse wird damit ungültig; die Gäste bleiben eingetragen und erhalten über eine neue Einladung wieder Zugang.",
                "tags": [
                    "sharing"
                ],
                "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": {
                                        "board_uuid": "a1b2c3d4-...",
                                        "is_shared": true,
                                        "share_url": "https://app.example.com/share/board/…"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/external-invites": {
            "post": {
                "operationId": "boards-external-invite",
                "summary": "Gast einladen",
                "description": "Lädt eine Person ohne Konto zum Board ein und schickt ihr eine Einladung mit einem zeitlich begrenzten Zugangslink. Ist die externe Freigabe noch nicht aktiv, wird sie dabei eingeschaltet, weil die Einladung sonst ins Leere liefe.",
                "tags": [
                    "sharing"
                ],
                "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": "9f8e7d6c-...",
                                        "name": "Gast",
                                        "email": "gast@example.com"
                                    },
                                    "message": "Invitation sent successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "email": {
                                        "type": "string",
                                        "description": "Mailadresse des Gastes"
                                    },
                                    "name": {
                                        "type": "string",
                                        "description": "Anzeigename des Gastes (max. 255 Zeichen)"
                                    }
                                },
                                "required": [
                                    "email",
                                    "name"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/external-invites/{inviteUuid}": {
            "delete": {
                "operationId": "boards-external-invite-revoke",
                "summary": "Gästezugang entziehen",
                "description": "Entzieht einem Gast den Zugang zu diesem Board. Die Freigabe-Adresse des Boards bleibt unverändert.",
                "tags": [
                    "sharing"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "inviteUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "message": "External access revoked successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/boards/{uuid}/transfer-ownership": {
            "post": {
                "operationId": "boards-transfer-ownership",
                "summary": "Eigentum übertragen",
                "description": "Übergibt das Board an ein anderes Mitglied; der bisherige Eigentümer wird Administrator. Die Zielperson muss bereits Zugriff auf das Board haben, sonst antwortet die Schnittstelle mit HTTP 422.",
                "tags": [
                    "sharing"
                ],
                "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": "Board ownership transferred successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "user_uuid": {
                                        "type": "string",
                                        "description": "UUID des neuen Eigentümers; muss ein Mitglied des Teams und des Boards sein"
                                    }
                                },
                                "required": [
                                    "user_uuid"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/files": {
            "get": {
                "operationId": "todos-files-list",
                "summary": "Dateien eines Todos auflisten",
                "description": "Ruft die Anhänge eines Todos seitenweise ab, neueste zuerst. Anhänge, die ein Gast über ein freigegebenes Board hochgeladen hat, sind an uploaded_by_external erkennbar.",
                "tags": [
                    "files"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Seitenzahl, ab 1",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Einträge pro Seite, 1-200 (Standard 50)",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "uuid": "7a6b5c4d-...",
                                            "todo_uuid": "550e8400-...",
                                            "name": "Angebot.pdf",
                                            "mime_type": "application/pdf",
                                            "size": 182344,
                                            "kind": "document",
                                            "uploaded_by_name": "Anna",
                                            "uploaded_by_external": false
                                        }
                                    ],
                                    "meta": {
                                        "current_page": 1,
                                        "per_page": 50,
                                        "total": 1,
                                        "last_page": 1
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "todos-files-upload",
                "summary": "Datei an ein Todo anhängen",
                "description": "Hängt eine hochgeladene Datei an ein Todo. Der Aufruf erfolgt als multipart/form-data mit dem Feld file.",
                "tags": [
                    "files"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "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": "7a6b5c4d-...",
                                        "name": "Angebot.pdf",
                                        "mime_type": "application/pdf",
                                        "size": 182344,
                                        "kind": "document"
                                    },
                                    "message": "File attached successfully."
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "file": {
                                        "type": "string",
                                        "format": "binary",
                                        "description": "Die hochzuladende Datei, höchstens 50 MB, in einem der erlaubten Formate"
                                    }
                                },
                                "required": [
                                    "file"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/files/{fileUuid}/download": {
            "get": {
                "operationId": "todos-files-download",
                "summary": "Datei herunterladen",
                "description": "Liefert die Datei selbst als Download aus. Die Antwort ist kein JSON, sondern der Dateiinhalt mit passendem Inhaltstyp. Fehlt die gespeicherte Datei, antwortet die Schnittstelle mit HTTP 404 und dem Fehler file_missing.",
                "tags": [
                    "files"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "fileUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Fehlerantwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/todos/{todoUuid}/files/{fileUuid}/text": {
            "get": {
                "operationId": "todos-files-text",
                "summary": "Text einer Datei lesen",
                "description": "Liest den Text einer angehängten Datei über dieselbe Extraktion, die auch für Chat-Anhänge greift. Formate ohne Leseverfahren antworten mit extraction_available=false statt mit einem Fehler. Lange Texte werden in Abschnitten von 20.000 Zeichen geliefert; next_offset nennt die Fortsetzung.",
                "tags": [
                    "files"
                ],
                "parameters": [
                    {
                        "name": "todoUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "fileUuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "offset",
                        "in": "query",
                        "required": false,
                        "description": "Zeichenversatz für die Fortsetzung eines langen Textes (Standard 0)",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfolgreiche Antwort",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "uuid": "7a6b5c4d-...",
                                        "name": "Angebot.pdf",
                                        "extraction_available": true,
                                        "text": "Angebot Nr. 4711 …",
                                        "next_offset": null
                                    }
                                }
                            }
                        }
                    },
                    "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"
                    }
                }
            }
        }
    }
}