{
    "openapi": "3.1.0",
    "info": {
        "title": "CANIDEX API",
        "version": "1.0.0",
        "description": "Einziger Zugang zu den Daten von CANIDEX Core (ADR-0007).\n\n- **Authentifizierung** per OAuth2 (E13): Maschinenzugänge mit Client Credentials, Fachprodukte im Namen\n  eines Benutzers mit Authorization Code + PKCE (zentrale Anmeldung unter `/login`).\n- **IDs** sind ausschließlich öffentliche IDs mit Präfix, z. B. `CXD-…` für Hunde (E06, E17). Interne IDs werden nie ausgegeben.\n- **Berechtigungen und Datenfilterung** (E23, T29): Scopes begrenzen grob; welche Datensätze und Felder ein Aufrufer\n  sieht, hängt von seinen Rollen ab. Zuständige sehen die Daten ihrer Organisation vollständig, alle anderen nur\n  bestätigte Datensätze öffentlicher Bereiche bzw. per Veröffentlichungsregel freigegebene.\n- **Request-ID:** optional `X-Request-Id` (UUID) mitsenden; die Antwort enthält sie immer. Sie erscheint im Audit Log.\n- **Fachliche Fehler** (z. B. unzulässiger Statuswechsel) liefern `422` mit Begründung.\n- **Rate Limiting** je Benutzer bzw. Client (`429 Too Many Requests`): 120 Anfragen je Minute (`CANIDEX_API_RATE_LIMIT`); Fachprodukte mit vertraulichem Client im Auftrag eines Kontos (z. B. CANIDEX Breeder) 600 je Minute, Produkt und Konto (`CANIDEX_API_PRODUCT_RATE_LIMIT`).\n"
    },
    "servers": [
        {
            "url": "https://core.canidex.cloud/api/v1",
            "description": "Betrieb"
        },
        {
            "url": "http://localhost:8000/api/v1",
            "description": "Lokale Entwicklung"
        }
    ],
    "security": [
        {
            "oauth2": []
        }
    ],
    "components": {
        "securitySchemes": {
            "oauth2": {
                "type": "oauth2",
                "flows": {
                    "clientCredentials": {
                        "tokenUrl": "/oauth/token",
                        "scopes": {
                            "dogs:read": "Hundeakten lesen",
                            "pedigree:read": "Stammbäume lesen",
                            "people:read": "Personendaten lesen (soweit freigegeben)",
                            "reference:read": "Stammdaten lesen (Rassen, Organisationen, Titelkatalog, Veranstaltungen)",
                            "proposals:write": "Vorschläge einreichen",
                            "proposals:review": "Vorschläge prüfen und entscheiden",
                            "breeding:write": "Zuchtgeschehen als zuständiger Verein direkt erfassen (Deckung, Deckmeldung, Wurf, Wurfabnahme)",
                            "genetics:infer": "Abgeleitete Genotypen einer Rassedatenbank schreiben (Genetik-BOT, kein Labortest)",
                            "profile": "Eigenes Konto lesen (Name, E-Mail, Sprache, Person, Rollen) – Anmeldung über CANIDEX",
                            "events:write": "Veranstaltungen eines Fachprodukts mit Meldungen, Richtern und Ergebnissen übermitteln",
                            "breeder:read": "Eigene Zwinger, Verpaarungen, Würfe und Hunde lesen, Verpaarungen planen",
                            "breeder:write": "Eigene Welpen pflegen (Name, Geburtsangaben, Markierung)",
                            "club:read": "Daten eines Vereins lesen, in dem das Konto arbeitet (nach seinen Rechten dort)",
                            "club:write": "Daten eines Vereins pflegen, in dem das Konto arbeitet (nach seinen Rechten dort)",
                            "finance:read": "Beiträge, SEPA-Mandate, Kasse und Zuwendungsbestätigungen eines Vereins lesen (nach den Rechten dort)",
                            "finance:write": "Beiträge, Lastschriften, Mahnungen, Kassenbuchungen und Zuwendungsbestätigungen eines Vereins pflegen (nach den Rechten dort)"
                        }
                    },
                    "authorizationCode": {
                        "authorizationUrl": "/oauth/authorize",
                        "tokenUrl": "/oauth/token",
                        "refreshUrl": "/oauth/token",
                        "scopes": {
                            "dogs:read": "Hundeakten lesen",
                            "pedigree:read": "Stammbäume lesen",
                            "people:read": "Personendaten lesen (soweit freigegeben)",
                            "reference:read": "Stammdaten lesen (Rassen, Organisationen, Titelkatalog, Veranstaltungen)",
                            "proposals:write": "Vorschläge einreichen",
                            "proposals:review": "Vorschläge prüfen und entscheiden",
                            "breeding:write": "Zuchtgeschehen als zuständiger Verein direkt erfassen (Deckung, Deckmeldung, Wurf, Wurfabnahme)",
                            "genetics:infer": "Abgeleitete Genotypen einer Rassedatenbank schreiben (Genetik-BOT, kein Labortest)",
                            "profile": "Eigenes Konto lesen (Name, E-Mail, Sprache, Person, Rollen) – Anmeldung über CANIDEX",
                            "events:write": "Veranstaltungen eines Fachprodukts mit Meldungen, Richtern und Ergebnissen übermitteln",
                            "breeder:read": "Eigene Zwinger, Verpaarungen, Würfe und Hunde lesen, Verpaarungen planen",
                            "breeder:write": "Eigene Welpen pflegen (Name, Geburtsangaben, Markierung)",
                            "club:read": "Daten eines Vereins lesen, in dem das Konto arbeitet (nach seinen Rechten dort)",
                            "club:write": "Daten eines Vereins pflegen, in dem das Konto arbeitet (nach seinen Rechten dort)",
                            "finance:read": "Beiträge, SEPA-Mandate, Kasse und Zuwendungsbestätigungen eines Vereins lesen (nach den Rechten dort)",
                            "finance:write": "Beiträge, Lastschriften, Mahnungen, Kassenbuchungen und Zuwendungsbestätigungen eines Vereins pflegen (nach den Rechten dort)"
                        }
                    }
                }
            }
        },
        "parameters": {
            "RequestId": {
                "name": "X-Request-Id",
                "in": "header",
                "required": false,
                "schema": {
                    "type": "string",
                    "format": "uuid"
                }
            },
            "DogId": {
                "name": "dog",
                "in": "path",
                "required": true,
                "description": "CANIDEX-ID des Hundes",
                "schema": {
                    "$ref": "#/components/schemas/DogId"
                }
            },
            "ProposalId": {
                "name": "proposal",
                "in": "path",
                "required": true,
                "schema": {
                    "type": "string",
                    "pattern": "^CXQ-[0-9A-HJKMNP-TV-Z]{26}$"
                }
            }
        },
        "headers": {
            "RequestId": {
                "description": "Request-ID (vom Aufrufer übernommen oder neu vergeben)",
                "schema": {
                    "type": "string",
                    "format": "uuid"
                }
            }
        },
        "responses": {
            "Unauthenticated": {
                "description": "Kein oder ungültiges Token",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            },
            "Forbidden": {
                "description": "Scope oder Berechtigung fehlt, API-Client nicht registriert/gesperrt oder Benutzerkonto gesperrt",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            },
            "NotFound": {
                "description": "Datensatz nicht gefunden oder für den Aufrufer nicht sichtbar",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            },
            "Unprocessable": {
                "description": "Ungültige Parameter oder fachliche Regelverletzung",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "required": [
                                "message"
                            ],
                            "properties": {
                                "message": {
                                    "type": "string"
                                },
                                "errors": {
                                    "type": "object",
                                    "additionalProperties": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "TooManyRequests": {
                "description": "Rate Limit überschritten"
            }
        },
        "schemas": {
            "ClubRequest": {
                "description": "Anfrage für CANIDEX Kennel Club (E338)",
                "type": "object",
                "required": [
                    "id",
                    "club",
                    "organization",
                    "club_state",
                    "status",
                    "status_label",
                    "files",
                    "created_at"
                ],
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "club": {
                        "type": "string"
                    },
                    "organization": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "CANIDEX-ID des Vereins, null bei neu erfasstem Verein"
                    },
                    "club_state": {
                        "type": "string",
                        "enum": [
                            "ACTIVE",
                            "KNOWN",
                            "NEW"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "SUBMITTED",
                            "IN_PROGRESS",
                            "ONBOARDED",
                            "DECLINED"
                        ]
                    },
                    "status_label": {
                        "type": "string"
                    },
                    "files": {
                        "type": "integer",
                        "description": "Anzahl der Unterlagen"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                }
            },
            "ClubRequestInput": {
                "type": "object",
                "required": [
                    "role",
                    "contact",
                    "situation"
                ],
                "properties": {
                    "role": {
                        "type": "string",
                        "enum": [
                            "BOARD",
                            "BREEDING",
                            "OFFICE",
                            "MEMBER",
                            "BREEDER",
                            "OTHER"
                        ]
                    },
                    "contact": {
                        "type": "object",
                        "description": "Kontaktdaten für die Rückmeldung (Pflicht)",
                        "required": [
                            "first_name",
                            "last_name",
                            "email"
                        ],
                        "properties": {
                            "first_name": {
                                "type": "string",
                                "maxLength": 100
                            },
                            "last_name": {
                                "type": "string",
                                "maxLength": 100
                            },
                            "email": {
                                "type": "string",
                                "format": "email"
                            }
                        }
                    },
                    "breeds": {
                        "type": "array",
                        "maxItems": 5,
                        "items": {
                            "type": "string"
                        }
                    },
                    "breed_other": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "organization": {
                        "type": "string"
                    },
                    "club": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "country": {
                                "type": "string",
                                "maxLength": 2
                            },
                            "city": {
                                "type": "string"
                            },
                            "website": {
                                "type": "string"
                            },
                            "federation": {
                                "type": "string"
                            },
                            "email": {
                                "type": "string"
                            }
                        }
                    },
                    "situation": {
                        "type": "object",
                        "required": [
                            "board",
                            "timeframe"
                        ],
                        "properties": {
                            "tools": {
                                "type": "array",
                                "items": {
                                    "type": "string",
                                    "enum": [
                                        "PAPER",
                                        "SPREADSHEET",
                                        "CLUB_SOFTWARE",
                                        "BREEDING_SOFTWARE",
                                        "SERVICE",
                                        "UNKNOWN"
                                    ]
                                }
                            },
                            "software": {
                                "type": "string"
                            },
                            "members": {
                                "type": "string",
                                "enum": [
                                    "UP_TO_50",
                                    "UP_TO_200",
                                    "UP_TO_1000",
                                    "OVER_1000",
                                    "UNKNOWN"
                                ]
                            },
                            "litters": {
                                "type": "string",
                                "enum": [
                                    "NONE",
                                    "UP_TO_10",
                                    "UP_TO_50",
                                    "OVER_50",
                                    "UNKNOWN"
                                ]
                            },
                            "board": {
                                "type": "string",
                                "enum": [
                                    "SELF",
                                    "INFORMED",
                                    "NOT_YET"
                                ]
                            },
                            "timeframe": {
                                "type": "string",
                                "enum": [
                                    "NOW",
                                    "MONTHS",
                                    "YEAR",
                                    "INFO"
                                ]
                            },
                            "board_contact": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "email": {
                                        "type": "string"
                                    }
                                }
                            },
                            "wishes": {
                                "type": "string",
                                "maxLength": 2000
                            }
                        }
                    },
                    "website": {
                        "type": "string"
                    },
                    "phone": {
                        "type": "string",
                        "maxLength": 40
                    },
                    "message": {
                        "type": "string",
                        "maxLength": 5000
                    },
                    "files": {
                        "type": "array",
                        "maxItems": 5,
                        "items": {
                            "type": "string",
                            "format": "binary"
                        }
                    }
                }
            },
            "GenomicProfile": {
                "description": "Genomisches Profil (E296)",
                "type": "object",
                "required": [
                    "provider",
                    "snps",
                    "call_rate",
                    "f_roh",
                    "segments",
                    "roh_mb",
                    "uploaded_at"
                ],
                "properties": {
                    "provider": {
                        "type": "string"
                    },
                    "snps": {
                        "type": "integer"
                    },
                    "call_rate": {
                        "type": "number"
                    },
                    "f_roh": {
                        "type": "number"
                    },
                    "segments": {
                        "type": "integer"
                    },
                    "roh_mb": {
                        "type": "number"
                    },
                    "uploaded_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    }
                }
            },
            "ClubList": {
                "description": "Seitenweise Liste im Vereinsbereich (E326)",
                "type": "object",
                "required": [
                    "data",
                    "meta"
                ],
                "properties": {
                    "data": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "meta": {
                        "type": "object",
                        "required": [
                            "page",
                            "pages",
                            "total",
                            "per_page"
                        ],
                        "properties": {
                            "page": {
                                "type": "integer"
                            },
                            "pages": {
                                "type": "integer"
                            },
                            "total": {
                                "type": "integer"
                            },
                            "per_page": {
                                "type": "integer"
                            }
                        }
                    }
                }
            },
            "LitterListing": {
                "type": "object",
                "required": [
                    "mating",
                    "club",
                    "status",
                    "status_label",
                    "hidden_reason",
                    "note",
                    "expected_on",
                    "inquiry_url",
                    "puppies",
                    "public_url"
                ],
                "properties": {
                    "mating": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "club": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "SUBMITTED",
                            "PUBLISHED",
                            "HIDDEN",
                            "WITHDRAWN"
                        ]
                    },
                    "status_label": {
                        "type": "string"
                    },
                    "hidden_reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "expected_on": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "inquiry_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "puppies": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "required": [
                                "id",
                                "name",
                                "sex",
                                "taken"
                            ],
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "sex": {
                                    "type": "string"
                                },
                                "taken": {
                                    "type": "boolean"
                                }
                            }
                        }
                    },
                    "public_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            },
            "Invoice": {
                "description": "Rechnung oder Gutschrift zu einer Zahlung (E238), erstellt vom Rechnungssystem (Office)",
                "type": "object",
                "required": [
                    "id",
                    "kind",
                    "kind_label",
                    "number",
                    "amount_cents",
                    "paid_on",
                    "payment_method",
                    "status",
                    "status_label",
                    "ready",
                    "pdf_url"
                ],
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "CX-ID der Rechnung (CXI-…)"
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "INVOICE",
                            "CREDIT_NOTE"
                        ]
                    },
                    "kind_label": {
                        "type": "string"
                    },
                    "number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Rechnungsnummer des Rechnungssystems"
                    },
                    "text": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "amount_cents": {
                        "type": "integer",
                        "description": "Bruttobetrag in Cent, Gutschriften negativ"
                    },
                    "paid_on": {
                        "type": "string",
                        "format": "date"
                    },
                    "issued_on": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "payment_method": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "WAITING",
                            "REQUESTED",
                            "ISSUED"
                        ]
                    },
                    "status_label": {
                        "type": "string"
                    },
                    "ready": {
                        "type": "boolean"
                    },
                    "pdf_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            },
            "Error": {
                "type": "object",
                "required": [
                    "message"
                ],
                "properties": {
                    "message": {
                        "type": "string"
                    }
                }
            },
            "PublicId": {
                "type": "string",
                "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "NullablePublicId": {
                "type": [
                    "string",
                    "null"
                ],
                "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "DogId": {
                "type": "string",
                "pattern": "^CXD-[0-9A-HJKMNP-TV-Z]{26}$",
                "example": "CXD-01J8X7K4M9QZ3V5W6Y7A8B9C0D"
            },
            "Date": {
                "type": [
                    "string",
                    "null"
                ],
                "format": "date"
            },
            "PartialDate": {
                "type": [
                    "string",
                    "null"
                ],
                "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$",
                "description": "Datum in der bekannten Genauigkeit (T78): `2019` (nur Jahr), `2019-03` (Monat) oder `2019-03-05` (Tag)",
                "example": "2019-03"
            },
            "DateTime": {
                "type": [
                    "string",
                    "null"
                ],
                "format": "date-time"
            },
            "VerificationStatus": {
                "type": "string",
                "enum": [
                    "UNVERIFIED",
                    "SUBMITTED",
                    "VERIFIED",
                    "CONFIRMED",
                    "REJECTED"
                ]
            },
            "Provenance": {
                "type": "object",
                "required": [
                    "verification_status",
                    "authority"
                ],
                "properties": {
                    "verification_status": {
                        "$ref": "#/components/schemas/VerificationStatus"
                    },
                    "authority": {
                        "$ref": "#/components/schemas/NullablePublicId"
                    },
                    "own_source": {
                        "type": "boolean",
                        "description": "Nur für API-Clients einer Organisation mit Quellsystem (E199): Datensatz stammt aus einem eigenen Quellsystem"
                    },
                    "source_value": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Wert wie in der Quelle, z. B. „HD-A 1/1“ (T80); nur zur Anzeige, nie ausgewertet"
                    }
                }
            },
            "BreedSummary": {
                "type": "object",
                "required": [
                    "id",
                    "name"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/PublicId"
                    },
                    "name": {
                        "type": "string",
                        "example": "Magyar Vizsla (Kurzhaar)"
                    },
                    "fci_code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "example": "57"
                    }
                }
            },
            "Breed": {
                "type": "object",
                "required": [
                    "id",
                    "name",
                    "kind",
                    "status"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/PublicId"
                    },
                    "name": {
                        "type": "string"
                    },
                    "official_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "ROOT",
                            "GROUP",
                            "SECTION",
                            "BREED"
                        ]
                    },
                    "fci_code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "ACTIVE",
                            "PROVISIONAL",
                            "INACTIVE"
                        ]
                    },
                    "parent": {
                        "$ref": "#/components/schemas/NullablePublicId"
                    }
                }
            },
            "BreedDetail": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Breed"
                    },
                    {
                        "type": "object",
                        "required": [
                            "ancestors",
                            "children",
                            "varieties"
                        ],
                        "properties": {
                            "nomenclature": {
                                "description": "Angaben der FCI-Nomenklatur (E45), nur bei Rassen",
                                "oneOf": [
                                    {
                                        "type": "null"
                                    },
                                    {
                                        "type": "object",
                                        "required": [
                                            "cacib",
                                            "working_trial",
                                            "standard_url",
                                            "standard_valid_from",
                                            "subsection",
                                            "origin_countries",
                                            "origin_region"
                                        ],
                                        "properties": {
                                            "cacib": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ],
                                                "description": "CACIB-berechtigt"
                                            },
                                            "working_trial": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "enum": [
                                                    "NONE",
                                                    "REQUIRED",
                                                    "ON_REQUEST",
                                                    "NORDIC",
                                                    null
                                                ],
                                                "description": "Arbeitsprüfung: keine, laut Nomenklatur, nur auf Antrag einzelner Länder, nur nordische Länder"
                                            },
                                            "standard_url": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            },
                                            "standard_valid_from": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "format": "date"
                                            },
                                            "subsection": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            },
                                            "origin_countries": {
                                                "type": "array",
                                                "items": {
                                                    "type": "string",
                                                    "description": "ISO 3166-1 alpha-2"
                                                }
                                            },
                                            "origin_region": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "description": "Ursprungsregion, wenn die FCI kein Land nennt (z. B. Zentralafrika)"
                                            },
                                            "measurements": {
                                                "type": "array",
                                                "description": "Widerristhöhe und Gewicht laut Standard (E55); sex null = beide Geschlechter; variety = Code der Größenvarietät, null = ganze Rasse (E391)",
                                                "items": {
                                                    "type": "object",
                                                    "required": [
                                                        "kind",
                                                        "sex",
                                                        "variety",
                                                        "variety_name",
                                                        "min",
                                                        "max",
                                                        "unit"
                                                    ],
                                                    "properties": {
                                                        "kind": {
                                                            "type": "string",
                                                            "enum": [
                                                                "HEIGHT",
                                                                "WEIGHT"
                                                            ]
                                                        },
                                                        "sex": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "enum": [
                                                                "MALE",
                                                                "FEMALE",
                                                                null
                                                            ]
                                                        },
                                                        "variety": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "variety_name": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "min": {
                                                            "type": "number"
                                                        },
                                                        "max": {
                                                            "type": "number"
                                                        },
                                                        "unit": {
                                                            "type": "string"
                                                        }
                                                    }
                                                }
                                            },
                                            "cross_partners": {
                                                "type": "array",
                                                "items": {
                                                    "$ref": "#/components/schemas/PublicId"
                                                },
                                                "description": "Rassen, mit denen laut FCI gekreuzt werden darf (E54)"
                                            },
                                            "cross_guidelines": {
                                                "type": "array",
                                                "description": "FCI-Hinweise zu Kreuzungen von Varietäten dieser Rasse (E54)",
                                                "items": {
                                                    "type": "object",
                                                    "required": [
                                                        "severity",
                                                        "text"
                                                    ],
                                                    "properties": {
                                                        "severity": {
                                                            "type": "string",
                                                            "enum": [
                                                                "NEVER",
                                                                "AVOID",
                                                                "ONLY",
                                                                "INFO"
                                                            ]
                                                        },
                                                        "text": {
                                                            "type": "string"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            },
                            "ancestors": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "required": [
                                        "id",
                                        "name",
                                        "kind"
                                    ],
                                    "properties": {
                                        "id": {
                                            "$ref": "#/components/schemas/PublicId"
                                        },
                                        "name": {
                                            "type": "string"
                                        },
                                        "kind": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "children": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "required": [
                                        "id",
                                        "name"
                                    ],
                                    "properties": {
                                        "id": {
                                            "$ref": "#/components/schemas/PublicId"
                                        },
                                        "name": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "varieties": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "required": [
                                        "kind",
                                        "code",
                                        "name"
                                    ],
                                    "properties": {
                                        "kind": {
                                            "type": "string",
                                            "enum": [
                                                "HAIR",
                                                "SIZE",
                                                "COLOR",
                                                "OTHER"
                                            ]
                                        },
                                        "code": {
                                            "type": "string"
                                        },
                                        "name": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                ]
            },
            "KennelRef": {
                "oneOf": [
                    {
                        "type": "null"
                    },
                    {
                        "type": "object",
                        "required": [
                            "id",
                            "name"
                        ],
                        "properties": {
                            "id": {
                                "$ref": "#/components/schemas/PublicId"
                            },
                            "name": {
                                "type": "string"
                            }
                        }
                    }
                ]
            },
            "CoatOption": {
                "type": [
                    "object",
                    "null"
                ],
                "required": [
                    "code",
                    "name",
                    "organization"
                ],
                "properties": {
                    "code": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string",
                        "description": "in der Sprache der Anfrage"
                    },
                    "organization": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "CANIDEX-ID des Vereins, dessen Katalog den Eintrag führt"
                    }
                }
            },
            "Dog": {
                "type": "object",
                "required": [
                    "id",
                    "name",
                    "full_name",
                    "kennel",
                    "sex",
                    "status",
                    "archived"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/DogId"
                    },
                    "name": {
                        "type": "string",
                        "description": "Eigenname ohne Zwingername"
                    },
                    "full_name": {
                        "type": "string",
                        "description": "Eigenname und Zwingername, z. B. „Aron vom Walde“"
                    },
                    "kennel": {
                        "$ref": "#/components/schemas/KennelRef"
                    },
                    "breed": {
                        "$ref": "#/components/schemas/BreedSummary"
                    },
                    "sex": {
                        "type": "string",
                        "enum": [
                            "MALE",
                            "FEMALE",
                            "UNKNOWN"
                        ]
                    },
                    "date_of_birth": {
                        "$ref": "#/components/schemas/PartialDate"
                    },
                    "date_of_death": {
                        "$ref": "#/components/schemas/PartialDate"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "ACTIVE",
                            "DECEASED"
                        ]
                    },
                    "coat": {
                        "type": "object",
                        "description": "Farbe und Farbzeichnung aus dem Katalog des Zuchtvereins (E114)",
                        "properties": {
                            "color": {
                                "$ref": "#/components/schemas/CoatOption"
                            },
                            "marking": {
                                "$ref": "#/components/schemas/CoatOption"
                            }
                        }
                    },
                    "archived": {
                        "type": "boolean",
                        "description": "Verstorbene Hunde sind archiviert, bleiben aber abrufbar"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time",
                        "description": "letzte Änderung der Stammdaten (für Caches, T85)"
                    },
                    "external_ids": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Nur für API-Clients einer Organisation mit Quellsystem (E199): Kennungen (SYSTEM_ID) des Hundes in den eigenen Quellsystemen, z. B. `VDB-123`"
                    }
                }
            },
            "DogSummary": {
                "type": "object",
                "required": [
                    "id",
                    "name",
                    "full_name",
                    "kennel",
                    "sex"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/DogId"
                    },
                    "name": {
                        "type": "string"
                    },
                    "full_name": {
                        "type": "string"
                    },
                    "kennel": {
                        "$ref": "#/components/schemas/KennelRef"
                    },
                    "sex": {
                        "type": "string",
                        "enum": [
                            "MALE",
                            "FEMALE",
                            "UNKNOWN"
                        ]
                    },
                    "date_of_birth": {
                        "$ref": "#/components/schemas/PartialDate"
                    }
                }
            },
            "PedigreeEntry": {
                "type": "object",
                "required": [
                    "position",
                    "generation",
                    "role",
                    "dog"
                ],
                "properties": {
                    "position": {
                        "type": "string",
                        "description": "Pfad vom Probanden aus, z. B. SD = Mutter des Vaters",
                        "example": "SD"
                    },
                    "generation": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "role": {
                        "type": "string",
                        "enum": [
                            "SIRE",
                            "DAM"
                        ]
                    },
                    "dog": {
                        "$ref": "#/components/schemas/DogSummary"
                    }
                }
            },
            "PersonSummary": {
                "type": "object",
                "description": "Bei anonymisierten Personen ist `id` null und `name` „anonymisiert“.",
                "required": [
                    "id",
                    "name"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/NullablePublicId"
                    },
                    "name": {
                        "type": "string"
                    }
                }
            },
            "Address": {
                "type": "object",
                "required": [
                    "type",
                    "city",
                    "visibility"
                ],
                "properties": {
                    "type": {
                        "type": "string",
                        "enum": [
                            "HOME",
                            "POSTAL",
                            "KENNEL",
                            "BILLING"
                        ]
                    },
                    "street": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "postal_code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "city": {
                        "type": "string"
                    },
                    "country": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "visibility": {
                        "type": "string",
                        "enum": [
                            "PUBLIC",
                            "ORGANIZATION",
                            "PRIVATE"
                        ]
                    }
                }
            },
            "ContactPoint": {
                "type": "object",
                "required": [
                    "type",
                    "value",
                    "visibility"
                ],
                "properties": {
                    "type": {
                        "type": "string",
                        "enum": [
                            "EMAIL",
                            "PHONE",
                            "MOBILE",
                            "WEBSITE"
                        ]
                    },
                    "value": {
                        "type": "string"
                    },
                    "visibility": {
                        "type": "string",
                        "enum": [
                            "PUBLIC",
                            "ORGANIZATION",
                            "PRIVATE"
                        ]
                    }
                }
            },
            "PersonProfile": {
                "type": "object",
                "required": [
                    "id",
                    "name",
                    "anonymized"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/NullablePublicId"
                    },
                    "name": {
                        "type": "string"
                    },
                    "anonymized": {
                        "type": "boolean"
                    },
                    "date_of_birth": {
                        "$ref": "#/components/schemas/Date"
                    },
                    "addresses": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Address"
                        }
                    },
                    "contact_points": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ContactPoint"
                        }
                    }
                }
            },
            "Registration": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Provenance"
                    },
                    {
                        "type": "object",
                        "required": [
                            "id",
                            "registration_number",
                            "status"
                        ],
                        "properties": {
                            "id": {
                                "$ref": "#/components/schemas/PublicId"
                            },
                            "registry": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "registration_number": {
                                "type": "string"
                            },
                            "registration_date": {
                                "$ref": "#/components/schemas/Date"
                            },
                            "status": {
                                "type": "string",
                                "enum": [
                                    "ACTIVE",
                                    "TRANSFERRED",
                                    "CANCELLED"
                                ]
                            }
                        }
                    }
                ]
            },
            "Relationship": {
                "type": "object",
                "required": [
                    "role",
                    "is_primary",
                    "person"
                ],
                "properties": {
                    "role": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "example": "BREEDER"
                    },
                    "is_primary": {
                        "type": "boolean"
                    },
                    "person": {
                        "$ref": "#/components/schemas/PersonSummary"
                    },
                    "valid_from": {
                        "$ref": "#/components/schemas/Date"
                    }
                }
            },
            "HealthTest": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Provenance"
                    },
                    {
                        "type": "object",
                        "required": [
                            "id",
                            "type"
                        ],
                        "properties": {
                            "id": {
                                "$ref": "#/components/schemas/PublicId"
                            },
                            "type": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "example": "HD"
                            },
                            "performed_at": {
                                "$ref": "#/components/schemas/PartialDate",
                                "description": "ab VERIFIED immer vorhanden (T79)"
                            },
                            "result": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "ungeprüft leer, wenn nur ein Rohwert vorliegt (T80); ab VERIFIED immer vorhanden"
                            },
                            "result_details": {
                                "type": [
                                    "object",
                                    "null"
                                ]
                            },
                            "equivalents": {
                                "type": "array",
                                "description": "ungefähre Entsprechung auf einer anderen Skala, z. B. OFA „GOOD“ ≈ HD „A“ (T81) – nur Anzeige",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "type": {
                                            "type": "string"
                                        },
                                        "result": {
                                            "type": "string"
                                        },
                                        "note": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            },
                            "laboratory": {
                                "$ref": "#/components/schemas/NullablePublicId"
                            }
                        }
                    }
                ]
            },
            "GeneticTest": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Provenance"
                    },
                    {
                        "type": "object",
                        "required": [
                            "id",
                            "type"
                        ],
                        "properties": {
                            "id": {
                                "$ref": "#/components/schemas/PublicId"
                            },
                            "type": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "category": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "enum": [
                                    "DISEASE",
                                    "PARENTAGE",
                                    "IDENTITY",
                                    "TRAIT",
                                    null
                                ]
                            },
                            "sample_date": {
                                "$ref": "#/components/schemas/PartialDate"
                            },
                            "result": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "ungeprüft leer, wenn nur ein Rohwert vorliegt (T80). Gesamtergebnis; bei Panels ohne eigene Angabe die schlechteste Einstufung der Marker"
                            },
                            "markers": {
                                "type": "array",
                                "description": "Ergebnisse je Marker (E34); leer bei Einzeltests ohne Marker",
                                "items": {
                                    "$ref": "#/components/schemas/GeneticResult"
                                }
                            },
                            "laboratory": {
                                "$ref": "#/components/schemas/NullablePublicId"
                            }
                        }
                    }
                ]
            },
            "GeneticResult": {
                "type": "object",
                "required": [
                    "marker",
                    "genotype",
                    "status"
                ],
                "properties": {
                    "marker": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Code des Markers, z. B. PRCD_PRA"
                    },
                    "genotype": {
                        "type": "string",
                        "description": "Laborschreibweise, z. B. N/N, N/PRA, PRA/PRA; X-chromosomal bei Rüden N/Y"
                    },
                    "status": {
                        "$ref": "#/components/schemas/MarkerStatus"
                    }
                }
            },
            "MarkerStatus": {
                "type": "string",
                "enum": [
                    "CLEAR",
                    "CARRIER",
                    "AFFECTED"
                ]
            },
            "MarkerFinding": {
                "type": "object",
                "required": [
                    "marker",
                    "name",
                    "status",
                    "genotype",
                    "hereditary_clear",
                    "inferred",
                    "basis"
                ],
                "description": "Einstufung je Marker aus dem jüngsten bestätigten Test oder „frei durch Abstammung“ (beide Eltern frei, verifizierte Abstammung, höchstens 2 Generationen ohne Test); ohne beides ein abgeleiteter Genotyp einer Rassedatenbank (`inferred`, T82)",
                "properties": {
                    "marker": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "status": {
                        "$ref": "#/components/schemas/MarkerStatus"
                    },
                    "genotype": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "trait": {
                        "type": "boolean",
                        "description": "Merkmal (Fell, Farbe, Furnishings) statt Erbkrankheit – Einstufung bedeutet hier 0/1/2 Kopien der Variante, keine Wertung (E138)"
                    },
                    "value": {
                        "type": "string",
                        "description": "lesbare Einstufung, bei Merkmalen z. B. „F/F – 2 Kopien“"
                    },
                    "hereditary_clear": {
                        "type": "boolean"
                    },
                    "inferred": {
                        "type": "boolean",
                        "description": "abgeleitet (z. B. vom Genetik-BOT einer Rassedatenbank), kein Labortest, nicht bestätigt"
                    },
                    "basis": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Hunde, auf denen die Einstufung beruht (der Hund selbst oder seine Vorfahren)"
                    },
                    "derived_from": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "dogs": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "tests": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "computed_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                }
            },
            "DogAttribute": {
                "type": "object",
                "required": [
                    "code",
                    "name",
                    "data_type",
                    "value",
                    "visibility",
                    "organization"
                ],
                "description": "Dynamisches Attribut (T83), nur die für den Aufrufer sichtbaren (PUBLIC alle, ORGANIZATION die Stelle, PRIVATE nur Pflegende)",
                "properties": {
                    "code": {
                        "type": "string",
                        "example": "CALL_NAME"
                    },
                    "name": {
                        "type": "string"
                    },
                    "data_type": {
                        "type": "string",
                        "enum": [
                            "STRING",
                            "TEXT",
                            "INTEGER",
                            "DECIMAL",
                            "BOOLEAN",
                            "DATE",
                            "ENUM"
                        ]
                    },
                    "value": {
                        "type": [
                            "string",
                            "number",
                            "boolean"
                        ]
                    },
                    "visibility": {
                        "type": "string",
                        "enum": [
                            "PUBLIC",
                            "ORGANIZATION",
                            "PRIVATE"
                        ]
                    },
                    "organization": {
                        "$ref": "#/components/schemas/NullablePublicId"
                    }
                }
            },
            "MarkerShares": {
                "type": "object",
                "required": [
                    "clear",
                    "carrier",
                    "affected"
                ],
                "properties": {
                    "clear": {
                        "type": "number"
                    },
                    "carrier": {
                        "type": "number"
                    },
                    "affected": {
                        "type": "number"
                    }
                }
            },
            "MarkerPrognosis": {
                "type": "object",
                "required": [
                    "marker",
                    "name",
                    "inheritance",
                    "sire",
                    "dam",
                    "offspring"
                ],
                "description": "Anpaarungsprognose je Marker nach Mendel; `offspring` ist null, wenn ein Elterngenotyp unbekannt ist",
                "properties": {
                    "marker": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string",
                        "description": "Name je Rasse, sonst aus dem Katalog (E138)"
                    },
                    "trait": {
                        "type": "boolean",
                        "description": "Merkmal: Anteile bedeuten 0/1/2 Kopien der Variante (E138)"
                    },
                    "inheritance": {
                        "type": "string",
                        "enum": [
                            "AUTOSOMAL_RECESSIVE",
                            "AUTOSOMAL_DOMINANT",
                            "X_LINKED"
                        ]
                    },
                    "sire": {
                        "$ref": "#/components/schemas/MarkerParent"
                    },
                    "dam": {
                        "$ref": "#/components/schemas/MarkerParent"
                    },
                    "offspring": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/MarkerShares"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "males": {
                                                "$ref": "#/components/schemas/MarkerShares"
                                            },
                                            "females": {
                                                "$ref": "#/components/schemas/MarkerShares"
                                            },
                                            "copies": {
                                                "type": "object",
                                                "description": "nur bei Merkmalen mit autosomalem Erbgang – Anteil der Welpen mit 0, 1 bzw. 2 Kopien der Variante (E138)",
                                                "properties": {
                                                    "none": {
                                                        "type": "number"
                                                    },
                                                    "one": {
                                                        "type": "number"
                                                    },
                                                    "two": {
                                                        "type": "number"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            }
                        ]
                    }
                }
            },
            "MarkerParent": {
                "type": "object",
                "required": [
                    "status",
                    "genotype",
                    "hereditary_clear",
                    "label"
                ],
                "properties": {
                    "status": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "CLEAR",
                            "CARRIER",
                            "AFFECTED",
                            null
                        ]
                    },
                    "genotype": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "hereditary_clear": {
                        "type": "boolean"
                    },
                    "label": {
                        "type": "string"
                    }
                }
            },
            "DogTitle": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Provenance"
                    },
                    {
                        "type": "object",
                        "required": [
                            "id",
                            "status",
                            "homologated"
                        ],
                        "properties": {
                            "id": {
                                "$ref": "#/components/schemas/PublicId"
                            },
                            "title": {
                                "$ref": "#/components/schemas/NullablePublicId"
                            },
                            "code": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "awarded_at": {
                                "$ref": "#/components/schemas/PartialDate",
                                "description": "ab VERIFIED immer vorhanden (T79)"
                            },
                            "status": {
                                "type": "string",
                                "enum": [
                                    "ACTIVE",
                                    "REVOKED"
                                ]
                            },
                            "homologated": {
                                "type": "boolean"
                            }
                        }
                    }
                ]
            },
            "Result": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Provenance"
                    },
                    {
                        "type": "object",
                        "required": [
                            "id",
                            "value"
                        ],
                        "properties": {
                            "id": {
                                "$ref": "#/components/schemas/PublicId"
                            },
                            "event": {
                                "$ref": "#/components/schemas/NullablePublicId"
                            },
                            "event_name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "date": {
                                "$ref": "#/components/schemas/Date"
                            },
                            "event_type": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Code der Veranstaltungsart (E249)"
                            },
                            "class": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Code der Klasse der Meldung, z. B. WORKING_DOG_TRIAL_IGP1 (E249)"
                            },
                            "type": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "value": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "ungeprüft leer, wenn nur ein Rohwert vorliegt (T80)"
                            },
                            "handler": {
                                "oneOf": [
                                    {
                                        "$ref": "#/components/schemas/PersonSummary"
                                    },
                                    {
                                        "type": "null"
                                    }
                                ]
                            }
                        }
                    }
                ]
            },
            "EventResultRow": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Provenance"
                    },
                    {
                        "type": "object",
                        "required": [
                            "id",
                            "dog",
                            "value"
                        ],
                        "properties": {
                            "id": {
                                "$ref": "#/components/schemas/PublicId"
                            },
                            "dog": {
                                "type": "object",
                                "required": [
                                    "id",
                                    "name"
                                ],
                                "properties": {
                                    "id": {
                                        "$ref": "#/components/schemas/NullablePublicId"
                                    },
                                    "name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            },
                            "class": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "type": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "value": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "ungeprüft leer, wenn nur ein Rohwert vorliegt (T80)"
                            },
                            "handler": {
                                "oneOf": [
                                    {
                                        "$ref": "#/components/schemas/PersonSummary"
                                    },
                                    {
                                        "type": "null"
                                    }
                                ]
                            }
                        }
                    }
                ]
            },
            "Document": {
                "type": "object",
                "required": [
                    "id",
                    "kind",
                    "title",
                    "url"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/PublicId"
                    },
                    "type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "folder": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "HEALTH",
                            "GENETICS",
                            "TITLES",
                            "EVENTS",
                            "REGISTRATION",
                            "PHOTOS",
                            "OTHER",
                            null
                        ]
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "FILE",
                            "LINK"
                        ]
                    },
                    "title": {
                        "type": "string"
                    },
                    "mime_type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "size_bytes": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "url": {
                        "type": "string",
                        "description": "Bei Dateien ein zeitlich begrenzter, signierter Link; bei Links der Nachweis"
                    },
                    "url_status": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "UNCHECKED",
                            "OK",
                            "BROKEN",
                            null
                        ]
                    },
                    "visibility": {
                        "type": "string",
                        "enum": [
                            "INTERNAL",
                            "PUBLISHED",
                            "PLATFORM"
                        ],
                        "description": "warum sichtbar: intern bei der Stelle, von der Stelle veröffentlicht, Plattformbetrieb (T85)"
                    },
                    "watermark": {
                        "type": "boolean",
                        "description": "Bild nur mit Wasserzeichen"
                    }
                }
            },
            "DogImage": {
                "type": "object",
                "required": [
                    "id",
                    "title",
                    "kind",
                    "watermark",
                    "visibility",
                    "main",
                    "sizes",
                    "url"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/PublicId"
                    },
                    "title": {
                        "type": "string"
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "FILE",
                            "LINK"
                        ]
                    },
                    "watermark": {
                        "type": "boolean",
                        "description": "Größen tragen ein Wasserzeichen; das Original wird dann nicht ausgeliefert"
                    },
                    "visibility": {
                        "type": "string",
                        "enum": [
                            "PUBLIC",
                            "HIDDEN"
                        ],
                        "description": "Fotos sind sichtbar, solange nicht ausgeblendet; ausgeblendete sieht nur die Aufsicht (E156)"
                    },
                    "main": {
                        "type": "boolean",
                        "description": "Hauptfoto der Hundeakte"
                    },
                    "sizes": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "signierte, zeitlich begrenzte Links je Größe (längste Kante 200/800/1600 px); null bei Links",
                        "properties": {
                            "thumb": {
                                "type": "string"
                            },
                            "medium": {
                                "type": "string"
                            },
                            "large": {
                                "type": "string"
                            },
                            "original": {
                                "type": "string"
                            }
                        }
                    },
                    "url": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "bei Links die Adresse"
                    }
                }
            },
            "DogRecordSections": {
                "type": "object",
                "required": [
                    "registrations",
                    "people",
                    "health_tests",
                    "genetic_tests",
                    "genetic_markers",
                    "titles",
                    "results",
                    "documents"
                ],
                "properties": {
                    "registrations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Registration"
                        }
                    },
                    "people": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Relationship"
                        }
                    },
                    "health_tests": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/HealthTest"
                        }
                    },
                    "genetic_tests": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/GeneticTest"
                        }
                    },
                    "genetic_markers": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/MarkerFinding"
                        }
                    },
                    "carrier_probabilities": {
                        "type": "array",
                        "description": "Geschätzte Trägerwahrscheinlichkeiten autosomal-rezessiver Erbkrankheiten (E140): nur Marker ohne eigenen Test des Hundes, höchste zuerst",
                        "items": {
                            "$ref": "#/components/schemas/CarrierProbability"
                        }
                    },
                    "titles": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/DogTitle"
                        }
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Result"
                        }
                    },
                    "measurements": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/DogMeasurement"
                        }
                    },
                    "breeding_restrictions": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/BreedingRestriction"
                        }
                    },
                    "judge_reports": {
                        "type": "array",
                        "description": "Übernommene Richterberichte (E99), sichtbar wie die Ergebnisse der Meldung",
                        "items": {
                            "type": "object",
                            "properties": {
                                "event": {
                                    "type": "string"
                                },
                                "event_name": {
                                    "type": "string"
                                },
                                "date": {
                                    "type": "string",
                                    "format": "date"
                                },
                                "judge": {
                                    "type": [
                                        "object",
                                        "null"
                                    ]
                                },
                                "report": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "documents": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Document"
                        }
                    },
                    "attributes": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/DogAttribute"
                        }
                    }
                }
            },
            "DogCollection": {
                "type": "object",
                "description": "Hunde-Collection im CANIDEX-Austauschformat 1.0 (E315); vollständiges JSON-Schema unter /schema/canidex-dogs-1.0.schema.json",
                "required": [
                    "format",
                    "version",
                    "source",
                    "dogs"
                ],
                "properties": {
                    "format": {
                        "type": "string",
                        "const": "canidex.dogs"
                    },
                    "version": {
                        "type": "string"
                    },
                    "generated_at": {
                        "type": "string"
                    },
                    "source": {
                        "type": "object",
                        "required": [
                            "name"
                        ],
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "url": {
                                "type": "string"
                            },
                            "code": {
                                "type": "string"
                            },
                            "license": {
                                "type": "string"
                            }
                        }
                    },
                    "dogs": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "required": [
                                "ref",
                                "name",
                                "breed"
                            ],
                            "properties": {
                                "ref": {
                                    "type": "string"
                                },
                                "id": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "breed": {
                                    "type": "object"
                                },
                                "sex": {
                                    "type": "string",
                                    "enum": [
                                        "MALE",
                                        "FEMALE",
                                        "UNKNOWN"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "BreedingRestriction": {
                "type": "object",
                "description": "Zuchtsperre oder -auflage (E66, E309); Begründung nur für den heutigen Besitzer und die verhängende Stelle",
                "required": [
                    "id",
                    "kind",
                    "kind_label",
                    "text",
                    "authority",
                    "valid_from",
                    "valid_until",
                    "lifted_on",
                    "active",
                    "reason",
                    "lift_reason",
                    "conditions"
                ],
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "BAN",
                            "CONDITION"
                        ]
                    },
                    "kind_label": {
                        "type": "string"
                    },
                    "text": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "authority": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        }
                    },
                    "valid_from": {
                        "type": "string",
                        "format": "date"
                    },
                    "valid_until": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "lifted_on": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "lift_reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "conditions": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    }
                }
            },
            "DogMeasurement": {
                "type": "object",
                "description": "Größenmessung am Veranstaltungsort (E303, T169), sichtbar wie Ergebnisse",
                "required": [
                    "measured_on",
                    "height_cm",
                    "size_class",
                    "measured_by",
                    "event",
                    "event_name",
                    "verification_status",
                    "authority"
                ],
                "properties": {
                    "measured_on": {
                        "type": "string",
                        "format": "date"
                    },
                    "height_cm": {
                        "type": "number"
                    },
                    "size_class": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "measured_by": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "event": {
                        "$ref": "#/components/schemas/NullablePublicId"
                    },
                    "event_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "verification_status": {
                        "type": "string"
                    },
                    "authority": {
                        "$ref": "#/components/schemas/NullablePublicId"
                    }
                }
            },
            "TitleProgress": {
                "type": "object",
                "description": "Fortschritt zu einem Titel mit Nachweis-Voraussetzung (E303, T177, E63)",
                "required": [
                    "title",
                    "required",
                    "counted",
                    "missing",
                    "met",
                    "distinct",
                    "requirement",
                    "counting_result_types",
                    "counting_titles",
                    "evidence"
                ],
                "properties": {
                    "title": {
                        "type": "object",
                        "required": [
                            "id",
                            "code",
                            "name",
                            "authority"
                        ],
                        "properties": {
                            "id": {
                                "$ref": "#/components/schemas/PublicId"
                            },
                            "code": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            },
                            "authority": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "properties": {
                                    "id": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    },
                    "required": {
                        "type": "integer",
                        "description": "Mindestzahl der Nachweise"
                    },
                    "counted": {
                        "type": "integer",
                        "description": "zählende Nachweise nach der Unterscheidung des Titels"
                    },
                    "missing": {
                        "type": "integer"
                    },
                    "met": {
                        "type": "boolean"
                    },
                    "distinct": {
                        "type": "string",
                        "enum": [
                            "NONE",
                            "EVENT",
                            "EVENT_TYPE",
                            "JUDGE"
                        ]
                    },
                    "requirement": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Voraussetzung in Klartext"
                    },
                    "counting_result_types": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "string"
                        },
                        "description": "zählende Ergebnisarten; beide Listen null = jedes bestandene, bestätigte Ergebnis"
                    },
                    "counting_titles": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "evidence": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "required": [
                                "kind",
                                "id",
                                "event",
                                "event_name",
                                "date",
                                "type",
                                "value"
                            ],
                            "properties": {
                                "kind": {
                                    "type": "string",
                                    "enum": [
                                        "RESULT",
                                        "TITLE"
                                    ]
                                },
                                "id": {
                                    "$ref": "#/components/schemas/PublicId"
                                },
                                "event": {
                                    "$ref": "#/components/schemas/NullablePublicId"
                                },
                                "event_name": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "date": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "format": "date"
                                },
                                "type": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "value": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "DogVaccination": {
                "type": "object",
                "description": "Tollwutimpfung als privater Nachweis (E303, T180)",
                "required": [
                    "id",
                    "kind",
                    "vaccinated_on",
                    "valid_until",
                    "valid",
                    "vaccine",
                    "batch",
                    "veterinarian",
                    "has_proof",
                    "proof_url"
                ],
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "RABIES"
                        ]
                    },
                    "vaccinated_on": {
                        "type": "string",
                        "format": "date"
                    },
                    "valid_until": {
                        "type": "string",
                        "format": "date"
                    },
                    "valid": {
                        "type": "boolean",
                        "description": "heute gültig"
                    },
                    "vaccine": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "batch": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "veterinarian": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "has_proof": {
                        "type": "boolean"
                    },
                    "proof_url": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Foto bzw. PDF des Impfpasses (mit demselben Token abrufen)"
                    }
                }
            },
            "EntryPayment": {
                "type": "object",
                "description": "Meldegeld direkt an den Veranstalter (E305)",
                "required": [
                    "id",
                    "entry_ref",
                    "amount_cents",
                    "currency",
                    "status",
                    "provider",
                    "order_id",
                    "capture_id",
                    "completed_at"
                ],
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "entry_ref": {
                        "type": "string"
                    },
                    "provider": {
                        "type": "string",
                        "enum": [
                            "PAYPAL",
                            "STRIPE"
                        ],
                        "description": "Zahlungsweg (E406): PayPal-Bestellung bzw. Stripe-Checkout im verbundenen Konto des Veranstalters"
                    },
                    "amount_cents": {
                        "type": "integer"
                    },
                    "currency": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "CREATED",
                            "PENDING",
                            "COMPLETED",
                            "FAILED"
                        ],
                        "description": "PENDING = PayPal prüft noch bzw. Lastschrift über Stripe unterwegs, gilt nicht als bezahlt; Stripe: CREATED bis bezahlt, FAILED = abgelaufen"
                    },
                    "order_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "capture_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "completed_at": {
                        "$ref": "#/components/schemas/DateTime"
                    }
                }
            },
            "OwnerDocument": {
                "type": "object",
                "description": "Private Unterlage des Besitzers (E304)",
                "required": [
                    "id",
                    "type",
                    "type_name",
                    "title",
                    "mime_type",
                    "size_bytes",
                    "uploaded_at",
                    "attached",
                    "url"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/PublicId"
                    },
                    "type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "type_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "title": {
                        "type": "string"
                    },
                    "mime_type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "size_bytes": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "uploaded_at": {
                        "$ref": "#/components/schemas/DateTime"
                    },
                    "attached": {
                        "type": "boolean",
                        "description": "liegt einem Antrag oder Eintrag bei – die Stelle sieht sie, löschen nicht mehr möglich"
                    },
                    "url": {
                        "type": "string",
                        "description": "signierter, zeitlich begrenzter Link"
                    }
                }
            },
            "DogDelegation": {
                "type": "object",
                "required": [
                    "id",
                    "permission",
                    "since",
                    "account"
                ],
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "permission": {
                        "type": "string",
                        "enum": [
                            "READ",
                            "ENTER"
                        ]
                    },
                    "since": {
                        "$ref": "#/components/schemas/DateTime"
                    },
                    "account": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "email": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        }
                    }
                }
            },
            "OrganizationSummary": {
                "type": "object",
                "required": [
                    "id",
                    "name",
                    "status"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/PublicId"
                    },
                    "name": {
                        "type": "string"
                    },
                    "short_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "country": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "ACTIVE",
                            "INACTIVE"
                        ]
                    },
                    "in_canidex": {
                        "type": "boolean",
                        "description": "Arbeitet selbst mit CANIDEX (E215); sonst bestätigen Einreichende ihre Bescheide selbst, Zwinger werden eingetragen statt angemeldet (E216)"
                    }
                }
            },
            "OrganizationProfile": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/OrganizationSummary"
                    },
                    {
                        "type": "object",
                        "required": [
                            "memberships",
                            "breeds",
                            "addresses",
                            "contact_points"
                        ],
                        "properties": {
                            "memberships": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "required": [
                                        "type",
                                        "organization"
                                    ],
                                    "properties": {
                                        "type": {
                                            "type": "string",
                                            "enum": [
                                                "MEMBER_OF",
                                                "RECOGNIZED_BY",
                                                "PARTNER_OF"
                                            ]
                                        },
                                        "organization": {
                                            "$ref": "#/components/schemas/NullablePublicId"
                                        },
                                        "member_number": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Vereinsnummer beim Verband, z. B. EDV-Nr. beim JGHV (E422)"
                                        },
                                        "valid_from": {
                                            "$ref": "#/components/schemas/Date"
                                        },
                                        "valid_until": {
                                            "$ref": "#/components/schemas/Date"
                                        }
                                    }
                                }
                            },
                            "breeds": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "required": [
                                        "id",
                                        "name"
                                    ],
                                    "properties": {
                                        "id": {
                                            "$ref": "#/components/schemas/PublicId"
                                        },
                                        "name": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "addresses": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/Address"
                                }
                            },
                            "contact_points": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/ContactPoint"
                                }
                            },
                            "donation": {
                                "description": "Eigener Spendenlink einer Rassedatenbank (E299) – Zahlungen laufen nicht über CANIDEX",
                                "oneOf": [
                                    {
                                        "type": "null"
                                    },
                                    {
                                        "type": "object",
                                        "required": [
                                            "url",
                                            "text"
                                        ],
                                        "properties": {
                                            "url": {
                                                "type": "string",
                                                "format": "uri"
                                            },
                                            "text": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            }
                                        }
                                    }
                                ]
                            }
                        }
                    }
                ]
            },
            "Title": {
                "type": "object",
                "required": [
                    "id",
                    "code",
                    "name",
                    "authority"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/PublicId"
                    },
                    "code": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "authority": {
                        "$ref": "#/components/schemas/NullablePublicId"
                    }
                }
            },
            "Event": {
                "type": "object",
                "required": [
                    "id",
                    "name",
                    "starts_at",
                    "status"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/PublicId"
                    },
                    "name": {
                        "type": "string"
                    },
                    "type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "type_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Art in der Sprache der Anfrage (E165)"
                    },
                    "type_group": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Grundart (E185), z. B. HUNTING_TRIAL für FIELD_TRIAL; bei einer Grundart sie selbst",
                        "properties": {
                            "code": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        }
                    },
                    "organization": {
                        "$ref": "#/components/schemas/NullablePublicId"
                    },
                    "organizer": {
                        "description": "Ausrichter mit Namen (E165)",
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "id",
                                    "name"
                                ],
                                "properties": {
                                    "id": {
                                        "$ref": "#/components/schemas/PublicId"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "short_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        ]
                    },
                    "starts_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "ends_at": {
                        "$ref": "#/components/schemas/DateTime"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "PLANNED",
                            "RUNNING",
                            "FINISHED",
                            "PROCESSED",
                            "CANCELLED"
                        ]
                    },
                    "location": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "city": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "country": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "lat": {
                                        "type": [
                                            "number",
                                            "null"
                                        ],
                                        "description": "Breite (E303, T164)"
                                    },
                                    "lng": {
                                        "type": [
                                            "number",
                                            "null"
                                        ],
                                        "description": "Länge (E303, T164)"
                                    }
                                }
                            }
                        ]
                    },
                    "updated_at": {
                        "$ref": "#/components/schemas/DateTime"
                    },
                    "distance_km": {
                        "type": "number",
                        "description": "Entfernung zum Mittelpunkt `near` in km (nur mit `near`, E303)"
                    },
                    "booked_out": {
                        "type": "boolean",
                        "description": "Ausgebucht (E160) – keine neuen Meldungen; Status bleibt"
                    },
                    "entry_deadline": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date",
                        "description": "Meldeschluss"
                    },
                    "source": {
                        "description": "Herkunft aus einem öffentlichen Kalender (E160) oder einem Fachprodukt wie CANIDEX Events (E189, code = Quellsystem); unverified = vom Ausrichter noch nicht übernommen",
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "name",
                                    "unverified"
                                ],
                                "properties": {
                                    "code": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "fester Code der Quelle, z. B. TKAMO (E171)"
                                    },
                                    "name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "url": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "unverified": {
                                        "type": "boolean"
                                    },
                                    "also_in": {
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        },
                                        "description": "weitere Quellen desselben Termins: Code => Link (E164)"
                                    },
                                    "reuse_allowed": {
                                        "type": "boolean",
                                        "description": "Termin darf weitergezeigt werden, z. B. im Kalender-Widget – nur Quellen mit Erlaubnis und eigene Veranstaltungen (E311)"
                                    },
                                    "entry_url": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Link zur Online-Meldung, falls die Quelle ihn nennt (E166)"
                                    },
                                    "entry_requires_login": {
                                        "type": "boolean",
                                        "description": "Online-Meldung nur nach Login beim Anbieter (E180); der Link wird trotzdem geliefert"
                                    },
                                    "entry_office": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Meldestelle laut Quelle als Text (E167)"
                                    },
                                    "contact": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Kontakt laut Quelle als Text (E167); Richter liefert die API nicht"
                                    },
                                    "field_rules": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "description": "nur Fachprodukt: Field Trial nach französischem Reglement (E191)",
                                        "properties": {
                                            "variant": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "enum": [
                                                    "FTA",
                                                    "FTGN",
                                                    "FTGS",
                                                    null
                                                ]
                                            },
                                            "game": {
                                                "type": "array",
                                                "items": {
                                                    "type": "string"
                                                },
                                                "description": "Wildarten, z. B. fasan, waldschnepfe"
                                            },
                                            "shot": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ]
                                            },
                                            "retrieve": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ]
                                            },
                                            "conditions": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            }
                                        }
                                    }
                                }
                            }
                        ]
                    }
                }
            },
            "EventFeeStatement": {
                "type": "object",
                "description": "Abrechnung der Veranstaltungsgebühr (E194), Nummer CXF-JJJJ-NNNNN",
                "required": [
                    "number",
                    "entries",
                    "price_cents",
                    "amount_cents",
                    "status",
                    "issued_at"
                ],
                "properties": {
                    "number": {
                        "type": "string"
                    },
                    "entries": {
                        "type": "integer",
                        "description": "zugelassene Meldungen"
                    },
                    "price_cents": {
                        "type": "integer"
                    },
                    "max_cents": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Obergrenze je Veranstaltung (E396), null = ohne"
                    },
                    "amount_cents": {
                        "type": "integer",
                        "description": "Meldungen × Preis, höchstens max_cents"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "OPEN",
                            "PAID",
                            "CANCELLED"
                        ]
                    },
                    "issued_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "paid_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "charge": {
                        "type": "object",
                        "description": "Automatische Abbuchung vom hinterlegten Zahlungsmittel (E195, E411): Versuche, letzter Versuch, nächster Versuch, Fehler",
                        "required": [
                            "attempts",
                            "charged_at",
                            "next_at",
                            "error",
                            "paypal",
                            "mandate"
                        ],
                        "properties": {
                            "attempts": {
                                "type": "integer"
                            },
                            "charged_at": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "date-time"
                            },
                            "next_at": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "date-time"
                            },
                            "error": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "paypal": {
                                "type": "boolean",
                                "description": "per PayPal abgebucht"
                            },
                            "mandate": {
                                "type": "boolean",
                                "description": "Zahler hat ein Zahlungsmittel hinterlegt (sonst keine Abbuchung)"
                            }
                        }
                    }
                }
            },
            "EventFeeBilling": {
                "type": "object",
                "description": "Rechnungsdaten des Zahlers der Veranstaltungsgebühr (E195)",
                "required": [
                    "name",
                    "contact_name",
                    "street",
                    "postal_code",
                    "city",
                    "country",
                    "email",
                    "phone",
                    "vat_id",
                    "register_number"
                ],
                "properties": {
                    "name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "contact_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "street": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "postal_code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "city": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "country": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "ISO 3166-1 alpha-2"
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "vat_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "register_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "z. B. Vereinsregister"
                    }
                }
            },
            "EventFeeMandateState": {
                "type": "object",
                "description": "Hinterlegung des Zahlers für die Veranstaltungsgebühr (E195): Verein oder Person des Kontos",
                "required": [
                    "payer",
                    "billing",
                    "billing_complete",
                    "available",
                    "verified",
                    "verify_error",
                    "mandate",
                    "blocking"
                ],
                "properties": {
                    "billing": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "$ref": "#/components/schemas/EventFeeBilling"
                            }
                        ]
                    },
                    "billing_complete": {
                        "type": "boolean",
                        "description": "Rechnungsdaten vollständig (Name, Straße, PLZ, Ort, Land, E-Mail) – sonst keine Meldung"
                    },
                    "identity_url": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "nur bei confirm/billing/paypal mit next_url: Link zu „Log in with PayPal“ für die Kontodaten mit Anschrift"
                    },
                    "verified": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "nur mit verify=1: true = bei PayPal gültig; false = gelöscht oder nicht prüfbar (dann verify_error); null = nicht geprüft"
                    },
                    "verify_error": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "payer": {
                        "type": "object",
                        "required": [
                            "type",
                            "name"
                        ],
                        "properties": {
                            "type": {
                                "type": "string",
                                "enum": [
                                    "organization",
                                    "person"
                                ]
                            },
                            "name": {
                                "type": "string"
                            }
                        }
                    },
                    "available": {
                        "type": "boolean",
                        "description": "Ein Zahlungsmittel kann hinterlegt werden (PayPal direkt oder über Stripe, E411)"
                    },
                    "mandate": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "provider",
                                    "status",
                                    "method",
                                    "payer_email",
                                    "payer_name",
                                    "paypal_account_id",
                                    "payer_phone",
                                    "payer_address",
                                    "approved_at"
                                ],
                                "properties": {
                                    "provider": {
                                        "type": "string",
                                        "enum": [
                                            "PAYPAL",
                                            "STRIPE"
                                        ]
                                    },
                                    "method": {
                                        "type": "string",
                                        "description": "Zahlungsmittel in Worten, z. B. „PayPal anna@example.com“, „Visa •••• 4242“, „SEPA-Lastschrift DE•• •••• 3000“ (E411)"
                                    },
                                    "status": {
                                        "type": "string",
                                        "enum": [
                                            "ACTIVE"
                                        ]
                                    },
                                    "payer_email": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "payer_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "bei PayPal die PayPal-Daten des Zahlers, bei Stripe Name und E-Mail aus den Rechnungsdaten"
                                    },
                                    "paypal_account_id": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "payer_phone": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "payer_address": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "properties": {
                                            "street": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            },
                                            "postal_code": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            },
                                            "city": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            },
                                            "region": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            },
                                            "country": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            }
                                        }
                                    },
                                    "approved_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date-time"
                                    }
                                }
                            }
                        ]
                    },
                    "blocking": {
                        "type": "array",
                        "description": "überfällige offene Abrechnungen – solange es welche gibt, darf der Zahler keine Meldung öffnen",
                        "items": {
                            "type": "object",
                            "required": [
                                "number",
                                "amount_cents",
                                "issued_at",
                                "error"
                            ],
                            "properties": {
                                "number": {
                                    "type": "string"
                                },
                                "amount_cents": {
                                    "type": "integer"
                                },
                                "issued_at": {
                                    "type": "string",
                                    "format": "date-time"
                                },
                                "error": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "Proposal": {
                "type": "object",
                "required": [
                    "id",
                    "type",
                    "status",
                    "authority",
                    "payload",
                    "submitted_at"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/PublicId"
                    },
                    "type": {
                        "type": "string",
                        "enum": [
                            "TITLE",
                            "EVENT_RESULT",
                            "HEALTH_TEST",
                            "GENETIC_TEST",
                            "OWNER_CHANGE",
                            "PARENTAGE",
                            "DOG_CREATE",
                            "KENNEL_APPLICATION",
                            "KENNEL_OWNER_CHANGE",
                            "MATING_REQUEST",
                            "MATING_REPORT",
                            "LITTER_REPORT",
                            "LITTER_INSPECTION_REQUEST",
                            "PERSON_CORRECTION",
                            "RULE_EXCEPTION",
                            "JUDGE_QUALIFICATION",
                            "DOG_EDIT",
                            "PERSON_CLAIM",
                            "DOG_CORRECTION"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "SUBMITTED",
                            "UNDER_REVIEW",
                            "APPROVED",
                            "REJECTED",
                            "WITHDRAWN"
                        ]
                    },
                    "announced": {
                        "type": "boolean",
                        "description": "Nur angekündigt (Einstellung des Vereins, E74) – beim Einreichen sofort übernommen"
                    },
                    "authority": {
                        "$ref": "#/components/schemas/NullablePublicId"
                    },
                    "authority_in_canidex": {
                        "type": "boolean",
                        "description": "Die zuständige Stelle arbeitet selbst mit CANIDEX (E215); sonst bestätigt der Einreichende ihren Bescheid über `POST /me/proposals/{proposal}/confirmation`"
                    },
                    "target": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "type"
                                ],
                                "properties": {
                                    "type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "id": {
                                        "$ref": "#/components/schemas/NullablePublicId"
                                    }
                                }
                            }
                        ]
                    },
                    "payload": {
                        "type": "object"
                    },
                    "submitted_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "processed_at": {
                        "$ref": "#/components/schemas/DateTime"
                    },
                    "result": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "type"
                                ],
                                "properties": {
                                    "type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "id": {
                                        "$ref": "#/components/schemas/NullablePublicId"
                                    }
                                }
                            }
                        ]
                    },
                    "decision": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "decision",
                                    "decided_at"
                                ],
                                "properties": {
                                    "decision": {
                                        "type": "string",
                                        "enum": [
                                            "APPROVED",
                                            "REJECTED"
                                        ]
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "decided_at": {
                                        "type": "string",
                                        "format": "date-time"
                                    },
                                    "details": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "description": "DOG_EDIT: Felder accepted, rejected, conflicts (T84)"
                                    },
                                    "self_confirmation": {
                                        "$ref": "#/components/schemas/SelfConfirmation"
                                    }
                                }
                            }
                        ]
                    },
                    "fields": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "DOG_EDIT offen: je Feld alter, neuer und heutiger Wert, Konflikt seit dem Einreichen (T84)",
                        "items": {
                            "type": "object",
                            "properties": {
                                "field": {
                                    "type": "string"
                                },
                                "old": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "new": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "current": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "conflict": {
                                    "type": "boolean"
                                }
                            }
                        }
                    }
                }
            },
            "SelfConfirmation": {
                "description": "Bescheid einer Stelle ohne CANIDEX, vom Einreichenden bzw. Inhaber selbst bestätigt (E215), oder Abnahmeprotokoll (E218); null = entschieden in CANIDEX",
                "oneOf": [
                    {
                        "type": "null"
                    },
                    {
                        "type": "object",
                        "required": [
                            "decided_on",
                            "reference",
                            "file_name",
                            "verified_at"
                        ],
                        "properties": {
                            "id": {
                                "type": "integer",
                                "description": "Nummer des Nachweises (Download in den Bereichen der Stelle)"
                            },
                            "organization": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Stelle, für die der Nachweis gilt"
                            },
                            "decided_on": {
                                "type": "string",
                                "format": "date",
                                "description": "Datum des Bescheids"
                            },
                            "reference": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Aktenzeichen"
                            },
                            "file_name": {
                                "type": "string",
                                "description": "Dateiname des Bescheids"
                            },
                            "verified_at": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "date-time",
                                "description": "Von der Stelle nachgeprüft"
                            }
                        }
                    }
                ]
            },
            "Kinship": {
                "type": "object",
                "required": [
                    "generations",
                    "coefficient",
                    "percent",
                    "common_ancestors"
                ],
                "properties": {
                    "generations": {
                        "type": "integer"
                    },
                    "coefficient": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1,
                        "description": "Anteil, z. B. 0.25 bei Vollgeschwister-Verpaarung"
                    },
                    "percent": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                    },
                    "common_ancestors": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/DogSummary"
                        }
                    }
                }
            },
            "KennelSummary": {
                "type": "object",
                "required": [
                    "id",
                    "name",
                    "name_position",
                    "status",
                    "fci_number",
                    "protected_at"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/PublicId"
                    },
                    "name": {
                        "type": "string"
                    },
                    "name_position": {
                        "type": "string",
                        "enum": [
                            "SUFFIX",
                            "PREFIX"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "SUBMITTED_TO_CLUB",
                            "SUBMITTED_TO_NATIONAL",
                            "SUBMITTED_TO_FCI",
                            "PROTECTED",
                            "REJECTED",
                            "EXPIRED"
                        ]
                    },
                    "fci_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "protected_at": {
                        "$ref": "#/components/schemas/Date"
                    }
                }
            },
            "KennelProfile": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/KennelSummary"
                    },
                    {
                        "type": "object",
                        "required": [
                            "breeds",
                            "owners",
                            "addresses",
                            "contact_points"
                        ],
                        "properties": {
                            "breeds": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "required": [
                                        "id",
                                        "name"
                                    ],
                                    "properties": {
                                        "id": {
                                            "$ref": "#/components/schemas/PublicId"
                                        },
                                        "name": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "owners": {
                                "type": "array",
                                "description": "Heutige Inhaber, der eingetragene Hauptinhaber zuerst",
                                "items": {
                                    "$ref": "#/components/schemas/PersonSummary"
                                }
                            },
                            "primary_owner": {
                                "$ref": "#/components/schemas/NullablePublicId"
                            },
                            "addresses": {
                                "type": "array",
                                "description": "Zwingeranschrift des eingetragenen Hauptinhabers (Adressart KENNEL, E77) – der Verein führt keine eigene Zwingeradresse",
                                "items": {
                                    "$ref": "#/components/schemas/Address"
                                }
                            },
                            "contact_points": {
                                "type": "array",
                                "description": "Kontaktwege der Inhaber, die sie für den Zwinger freigegeben haben (E77)",
                                "items": {
                                    "$ref": "#/components/schemas/ContactPoint"
                                }
                            },
                            "transferable": {
                                "type": "boolean",
                                "description": "Inhaberwechsel möglich – angemeldet oder geschützt (E26)"
                            },
                            "responsible_organization": {
                                "$ref": "#/components/schemas/NullablePublicId"
                            },
                            "responsible_organization_name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "responsible_organization_in_canidex": {
                                "type": "boolean",
                                "description": "Die Stelle, bei der der Antrag liegt, arbeitet selbst mit CANIDEX (E215); sonst bestätigt der Inhaber ihren Bescheid über `POST /me/kennels/{kennel}/confirmation`"
                            },
                            "name_candidates": {
                                "type": "array",
                                "description": "Namensvorschläge der Anmeldung in Reihenfolge (E119) – geschützt wird der erste nicht gestrichene; nur für beteiligte Organisationen und Inhaber",
                                "items": {
                                    "type": "object",
                                    "required": [
                                        "position",
                                        "name",
                                        "struck"
                                    ],
                                    "properties": {
                                        "position": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 3
                                        },
                                        "name": {
                                            "type": "string"
                                        },
                                        "struck": {
                                            "type": "boolean"
                                        },
                                        "struck_by": {
                                            "$ref": "#/components/schemas/NullablePublicId"
                                        },
                                        "struck_reason": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            },
                            "protection_steps": {
                                "type": "array",
                                "description": "Nur für beteiligte Organisationen und Inhaber",
                                "items": {
                                    "type": "object",
                                    "required": [
                                        "status",
                                        "organization",
                                        "occurred_at"
                                    ],
                                    "properties": {
                                        "organization_name": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "status": {
                                            "type": "string"
                                        },
                                        "organization": {
                                            "$ref": "#/components/schemas/NullablePublicId"
                                        },
                                        "reason": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "occurred_at": {
                                            "type": "string",
                                            "format": "date-time"
                                        },
                                        "self_confirmation": {
                                            "$ref": "#/components/schemas/SelfConfirmation"
                                        }
                                    }
                                }
                            },
                            "former_owners": {
                                "type": "array",
                                "description": "Nur für beteiligte Organisationen und Inhaber",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "person": {
                                            "oneOf": [
                                                {
                                                    "$ref": "#/components/schemas/PersonSummary"
                                                },
                                                {
                                                    "type": "null"
                                                }
                                            ]
                                        },
                                        "valid_from": {
                                            "$ref": "#/components/schemas/Date"
                                        },
                                        "valid_until": {
                                            "$ref": "#/components/schemas/Date"
                                        }
                                    }
                                }
                            },
                            "statistics": {
                                "type": "object",
                                "description": "Wurfstatistik (E150): aktiv = Wurf in den letzten 3 Jahren",
                                "properties": {
                                    "active": {
                                        "type": "boolean"
                                    },
                                    "last_litter": {
                                        "$ref": "#/components/schemas/Date"
                                    },
                                    "litters": {
                                        "type": "integer"
                                    },
                                    "puppies": {
                                        "type": "integer"
                                    },
                                    "males": {
                                        "type": "integer"
                                    },
                                    "females": {
                                        "type": "integer"
                                    },
                                    "inspected": {
                                        "type": "integer",
                                        "description": "abgenommene Würfe"
                                    },
                                    "by_year": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "year": {
                                                    "type": "integer"
                                                },
                                                "litters": {
                                                    "type": "integer"
                                                },
                                                "males": {
                                                    "type": "integer"
                                                },
                                                "females": {
                                                    "type": "integer"
                                                }
                                            }
                                        }
                                    }
                                }
                            },
                            "inspections": {
                                "type": "array",
                                "description": "Zwingerbesichtigungen (E150), neueste zuerst; Anlass, Ergebnis, Zuchtwart, Auflagen und Bericht nur für die Stelle und die Inhaber (A‑ZK1)",
                                "items": {
                                    "type": "object",
                                    "required": [
                                        "inspected_on"
                                    ],
                                    "properties": {
                                        "inspected_on": {
                                            "$ref": "#/components/schemas/Date"
                                        },
                                        "reason": {
                                            "type": "string",
                                            "enum": [
                                                "FIRST",
                                                "MOVE",
                                                "REPEAT",
                                                "OCCASION"
                                            ]
                                        },
                                        "result": {
                                            "type": "string",
                                            "enum": [
                                                "OK",
                                                "CONDITIONS",
                                                "FAILED"
                                            ]
                                        },
                                        "inspector": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "conditions": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "report": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                ]
            },
            "CarrierProbability": {
                "type": "object",
                "required": [
                    "marker",
                    "name",
                    "clear",
                    "carrier",
                    "affected",
                    "estimated_on"
                ],
                "properties": {
                    "marker": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "clear": {
                        "type": "number"
                    },
                    "carrier": {
                        "type": "number"
                    },
                    "affected": {
                        "type": "number"
                    },
                    "estimated_on": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "$ref": "#/components/schemas/Date"
                            }
                        ]
                    }
                }
            },
            "ParentCarrierProbability": {
                "type": "object",
                "required": [
                    "clear",
                    "carrier",
                    "affected",
                    "tested",
                    "estimated_on"
                ],
                "properties": {
                    "clear": {
                        "type": "number"
                    },
                    "carrier": {
                        "type": "number"
                    },
                    "affected": {
                        "type": "number"
                    },
                    "tested": {
                        "type": "boolean",
                        "description": "eigener bestätigter Gentest"
                    },
                    "estimated_on": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "$ref": "#/components/schemas/Date"
                            }
                        ]
                    }
                }
            },
            "MatingCheck": {
                "type": "object",
                "required": [
                    "passed",
                    "summary",
                    "sire_rules",
                    "dam_rules",
                    "coefficient_of_inbreeding",
                    "generations",
                    "marker_prognosis"
                ],
                "properties": {
                    "passed": {
                        "type": "boolean",
                        "description": "Zuchtregeln für Rüde und Hündin erfüllt (ohne Regelwerk gilt ein Tier als erfüllt)"
                    },
                    "summary": {
                        "type": "string"
                    },
                    "sire_rules": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "$ref": "#/components/schemas/RuleCheck"
                            }
                        ]
                    },
                    "dam_rules": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "$ref": "#/components/schemas/RuleCheck"
                            }
                        ]
                    },
                    "coefficient_of_inbreeding": {
                        "type": "number"
                    },
                    "generations": {
                        "type": "integer"
                    },
                    "marker_prognosis": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/MarkerPrognosis"
                        },
                        "description": "Anpaarungsprognose je Marker (E34), nur aus Tests, die der Aufrufer sehen darf"
                    },
                    "marker_risk": {
                        "type": "array",
                        "description": "Geschätztes Risiko betroffener Welpen je Marker (E142): Weitergabe Vater × Mutter aus Test oder Trägerwahrscheinlichkeit; null = nicht prüfbar oder Test nicht sichtbar",
                        "items": {
                            "type": "object",
                            "required": [
                                "marker",
                                "name",
                                "sire",
                                "dam",
                                "risk"
                            ],
                            "properties": {
                                "marker": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "sire": {
                                    "oneOf": [
                                        {
                                            "type": "null"
                                        },
                                        {
                                            "$ref": "#/components/schemas/ParentCarrierProbability"
                                        }
                                    ]
                                },
                                "dam": {
                                    "oneOf": [
                                        {
                                            "type": "null"
                                        },
                                        {
                                            "$ref": "#/components/schemas/ParentCarrierProbability"
                                        }
                                    ]
                                },
                                "risk": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "description": "Prozent"
                                }
                            }
                        }
                    },
                    "cross": {
                        "type": "object",
                        "description": "FCI-Richtlinien zu Kreuzungen (E54) – Hinweis, keine Ablehnung",
                        "required": [
                            "same_breed",
                            "allowed",
                            "guidelines"
                        ],
                        "properties": {
                            "same_breed": {
                                "type": "boolean"
                            },
                            "allowed": {
                                "type": "boolean",
                                "description": "gleiche Rasse oder von der FCI als Kreuzung eng verwandter Rassen vorgesehen"
                            },
                            "guidelines": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "required": [
                                        "severity",
                                        "text"
                                    ],
                                    "properties": {
                                        "severity": {
                                            "type": "string",
                                            "enum": [
                                                "NEVER",
                                                "AVOID",
                                                "ONLY",
                                                "INFO"
                                            ]
                                        },
                                        "text": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "RuleCheck": {
                "type": "object",
                "required": [
                    "ruleset",
                    "passed",
                    "summary",
                    "result"
                ],
                "properties": {
                    "ruleset": {
                        "$ref": "#/components/schemas/PublicId",
                        "description": "Spezifischstes beteiligtes Regelwerk (unterste Ebene)"
                    },
                    "rulesets": {
                        "type": "array",
                        "description": "Alle beteiligten Regelwerke, oben zuerst – FCI → Verband → Verein, Regel für Regel zusammengeführt (E42)",
                        "items": {
                            "type": "object",
                            "required": [
                                "id",
                                "code",
                                "authority"
                            ],
                            "properties": {
                                "id": {
                                    "$ref": "#/components/schemas/PublicId"
                                },
                                "code": {
                                    "type": "string"
                                },
                                "authority": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "passed": {
                        "type": "boolean"
                    },
                    "summary": {
                        "type": "string"
                    },
                    "result": {
                        "type": "object",
                        "description": "Ergebnisbaum; jede Regel oberster Ebene trägt `source` (ruleset, code, authority)"
                    }
                }
            },
            "Mating": {
                "type": "object",
                "required": [
                    "id",
                    "status",
                    "sire",
                    "dam",
                    "kennel",
                    "club",
                    "approved_at",
                    "valid_until"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/PublicId"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "APPROVED",
                            "MATED",
                            "WHELPED"
                        ]
                    },
                    "sire": {
                        "$ref": "#/components/schemas/DogSummary"
                    },
                    "dam": {
                        "$ref": "#/components/schemas/DogSummary"
                    },
                    "kennel": {
                        "$ref": "#/components/schemas/KennelRef"
                    },
                    "club": {
                        "$ref": "#/components/schemas/NullablePublicId"
                    },
                    "approved_at": {
                        "type": "string",
                        "format": "date"
                    },
                    "valid_until": {
                        "type": "string",
                        "format": "date"
                    },
                    "first_mated_on": {
                        "$ref": "#/components/schemas/Date"
                    },
                    "last_mated_on": {
                        "$ref": "#/components/schemas/Date"
                    },
                    "rules_passed": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "rule_evaluation": {
                        "type": [
                            "object",
                            "null"
                        ]
                    },
                    "coefficient_of_inbreeding": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "exception_reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "litter": {
                        "$ref": "#/components/schemas/NullablePublicId"
                    }
                }
            },
            "Litter": {
                "type": "object",
                "required": [
                    "id",
                    "letter",
                    "kennel",
                    "status",
                    "whelped_on",
                    "puppies"
                ],
                "properties": {
                    "id": {
                        "$ref": "#/components/schemas/PublicId"
                    },
                    "letter": {
                        "type": "string",
                        "pattern": "^[A-Z]$"
                    },
                    "kennel": {
                        "$ref": "#/components/schemas/KennelRef"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "REPORTED",
                            "INSPECTION_REQUESTED",
                            "INSPECTED"
                        ]
                    },
                    "sire": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "$ref": "#/components/schemas/DogSummary"
                            }
                        ]
                    },
                    "dam": {
                        "oneOf": [
                            {
                                "type": "null"
                            },
                            {
                                "$ref": "#/components/schemas/DogSummary"
                            }
                        ]
                    },
                    "whelped_on": {
                        "type": "string",
                        "format": "date"
                    },
                    "males_alive": {
                        "type": "integer"
                    },
                    "females_alive": {
                        "type": "integer"
                    },
                    "males_dead": {
                        "type": "integer"
                    },
                    "females_dead": {
                        "type": "integer"
                    },
                    "puppies": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/DogSummary"
                        }
                    },
                    "inspected_on": {
                        "$ref": "#/components/schemas/Date"
                    },
                    "mating": {
                        "$ref": "#/components/schemas/NullablePublicId",
                        "description": "Nur für Verein und Zwinger-Inhaber"
                    },
                    "whelping_date_reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "papers_issued_on": {
                        "$ref": "#/components/schemas/Date",
                        "description": "Nur für Verein und Zwinger-Inhaber – Papiere ausgestellt (E73)"
                    },
                    "authority_in_canidex": {
                        "type": "boolean",
                        "description": "Nur für Verein und Zwinger-Inhaber – arbeitet der Verein mit CANIDEX; sonst trägt der Züchter Abnahme und Zuchtbuch selbst ein (E218)"
                    },
                    "inspection": {
                        "type": "object",
                        "description": "Nur für Verein und Zwinger-Inhaber: Anmeldung (requested_at, preferred_on), angekündigter Termin (planned_at, planned_inspector, planned_note, E75), Zuchtwart, Notizen, Ergebnisse"
                    }
                }
            },
            "PageMeta": {
                "type": "object",
                "required": [
                    "current_page",
                    "per_page",
                    "total",
                    "last_page"
                ],
                "properties": {
                    "current_page": {
                        "type": "integer"
                    },
                    "per_page": {
                        "type": "integer"
                    },
                    "total": {
                        "type": "integer",
                        "description": "Anzahl der für den Aufrufer sichtbaren Treffer"
                    },
                    "last_page": {
                        "type": "integer"
                    }
                }
            },
            "ProposalEnvelope": {
                "type": "object",
                "required": [
                    "data"
                ],
                "properties": {
                    "data": {
                        "$ref": "#/components/schemas/Proposal"
                    }
                }
            }
        }
    },
    "paths": {
        "/dogs": {
            "get": {
                "summary": "Hunde suchen",
                "description": "Über eine Kennung (CANIDEX-ID, Chip, Tätowierung, Zuchtbuchnummer, Fremdsystem-ID – unabhängig von der Schreibweise,\nauch archivierte Hunde) oder über den Namen (nur nicht archivierte Hunde, seitenweise mit `links`/`meta`).\nDie Namenssuche ignoriert Akzente und Groß-/Kleinschreibung, findet Wortanfänge, toleriert Tippfehler\nund sortiert nach Relevanz.\n",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "identifier",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "identifier_type",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "MICROCHIP",
                                "TATTOO",
                                "SYSTEM_ID",
                                "REGISTRY_NO"
                            ]
                        }
                    },
                    {
                        "name": "name",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "breed",
                        "in": "query",
                        "description": "Öffentliche ID der Rasse",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 25
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Treffer",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/RequestId"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Dog"
                                            }
                                        },
                                        "links": {
                                            "type": "object"
                                        },
                                        "meta": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/dogs/search": {
            "get": {
                "summary": "Hunde suchen mit Filtern (Rassedatenbank-Frontends)",
                "description": "Strukturierte Suche in PostgreSQL (T85): alle Filter kombinierbar, seitenweise (`links`/`meta`), sortiert nach\nÄnderungsdatum (Standard), Name oder Geburtsdatum. Filter auf Befunde, Gentests und Titel berücksichtigen nur\nDatensätze, die der Aufrufer sehen darf. Listen kommagetrennt, Werte eines Befunds mit `|`.\n",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "description": "Teil des Namens oder Zwingernamens",
                        "schema": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "breed",
                        "in": "query",
                        "description": "Rassen als CANIDEX-ID oder FCI-Nummer, z. B. 57,239",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "sex",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "MALE",
                                "FEMALE",
                                "UNKNOWN"
                            ]
                        }
                    },
                    {
                        "name": "born_from",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "born_to",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "description": "ISO-3166-Alpha-2: Zuchtbuch des Landes oder öffentlich angegebenes Geburtsland",
                        "schema": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 2
                        }
                    },
                    {
                        "name": "health",
                        "in": "query",
                        "description": "Befunde, z. B. HD:A|B,ED:0",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "genotype",
                        "in": "query",
                        "description": "Marker und Einstufung, z. B. PRCD_PRA:CLEAR",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "genotype_inferred",
                        "in": "query",
                        "description": "abgeleitete Genotypen einbeziehen (T82)",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "title",
                        "in": "query",
                        "description": "Titel-Codes, z. B. CIB",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "active_since",
                        "in": "query",
                        "description": "mit Nachkommen ab diesem Geburtsjahr („aktiv über Nachkommen“)",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "include_archived",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "changed_since",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "updated_at",
                                "-updated_at",
                                "name",
                                "-name",
                                "date_of_birth",
                                "-date_of_birth"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 25
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Treffer",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data",
                                        "meta"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Dog"
                                            }
                                        },
                                        "links": {
                                            "type": "object"
                                        },
                                        "meta": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/changes": {
            "get": {
                "summary": "Geänderte Hunde seit einem Zeitpunkt (Caches, Sync)",
                "description": "Je Hund und Datenbereich der letzte Änderungszeitpunkt aus dem Audit Log, aufsteigend (T85). Nur Bereiche, die\nder Aufrufer lesen darf; Inhalte danach über die gefilterte Hundeakte. Mit `next` als neuem `since` fortsetzen.\n",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "since",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "area",
                        "in": "query",
                        "description": "Bereiche kommagetrennt: dogs, pedigree, registrations, health, genetics, titles, results, documents",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 1000,
                            "default": 500
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Änderungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data",
                                        "next"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "dog",
                                                    "area",
                                                    "changed_at"
                                                ],
                                                "properties": {
                                                    "dog": {
                                                        "type": "string"
                                                    },
                                                    "area": {
                                                        "type": "string"
                                                    },
                                                    "changed_at": {
                                                        "type": "string",
                                                        "format": "date-time"
                                                    }
                                                }
                                            }
                                        },
                                        "next": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "format": "date-time"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/data-quality": {
            "get": {
                "summary": "Offene Datenqualitäts-Hinweise zu den eigenen Hunden (Rassedatenbanken)",
                "description": "Nur für API-Clients einer Organisation mit Quellsystem (E201): offene Hinweise (T79) zu Hunden mit eigener Kennung,\nz. B. ein Elternteil, dessen Geschlecht nicht zur Rolle passt (`PARENT_WRONG_SEX`) oder das nicht älter ist als der\nNachkomme (`PARENT_NOT_OLDER`). Berichtigt wird in der Rassedatenbank; der Sync schließt den Hinweis.\n",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 500,
                            "default": 200
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Hinweise",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data",
                                        "meta"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "id",
                                                    "rule",
                                                    "message",
                                                    "detected_at",
                                                    "dog",
                                                    "parent"
                                                ],
                                                "properties": {
                                                    "id": {
                                                        "type": "integer"
                                                    },
                                                    "rule": {
                                                        "type": "string",
                                                        "example": "PARENT_WRONG_SEX"
                                                    },
                                                    "message": {
                                                        "type": "string"
                                                    },
                                                    "detected_at": {
                                                        "type": "string",
                                                        "format": "date-time"
                                                    },
                                                    "dog": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "id": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "external_ids": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "parent": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "role": {
                                                                "type": "string",
                                                                "enum": [
                                                                    "SIRE",
                                                                    "DAM"
                                                                ]
                                                            },
                                                            "id": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "external_ids": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "meta": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            }
        },
        "/dogs/{dog}/images": {
            "get": {
                "summary": "Fotos eines Hundes in Größen (gefiltert)",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Bilder",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/DogImage"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/offspring": {
            "get": {
                "summary": "Nachkommen mit anderem Elternteil und Wurf",
                "security": [
                    {
                        "oauth2": [
                            "pedigree:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Nachkommen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "dog",
                                                    "partner",
                                                    "litter"
                                                ],
                                                "properties": {
                                                    "dog": {
                                                        "$ref": "#/components/schemas/DogSummary"
                                                    },
                                                    "partner": {
                                                        "oneOf": [
                                                            {
                                                                "type": "null"
                                                            },
                                                            {
                                                                "$ref": "#/components/schemas/DogSummary"
                                                            }
                                                        ]
                                                    },
                                                    "litter": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ]
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/siblings": {
            "get": {
                "summary": "Voll- und Halbgeschwister",
                "security": [
                    {
                        "oauth2": [
                            "pedigree:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Geschwister",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "full",
                                                "half"
                                            ],
                                            "properties": {
                                                "full": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/DogSummary"
                                                    }
                                                },
                                                "half": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "dog": {
                                                                "$ref": "#/components/schemas/DogSummary"
                                                            },
                                                            "common": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "enum": [
                                                                    "SIRE",
                                                                    "DAM",
                                                                    null
                                                                ]
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/ancestry": {
            "get": {
                "summary": "Abstammungsgraph mehrerer Hunde (Massenabfrage für COI und Ahnenverlust)",
                "description": "Bis zu 50 Hunde, Tiefe bis 30, in einer Abfrage: jeder Ahne einmal (kleinste Tiefe), jede Elternangabe als Kante.",
                "security": [
                    {
                        "oauth2": [
                            "pedigree:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "dogs",
                        "in": "query",
                        "required": true,
                        "description": "CANIDEX-IDs kommagetrennt",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "depth",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 30,
                            "default": 10
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Graph",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "depth",
                                                "roots",
                                                "nodes",
                                                "edges"
                                            ],
                                            "properties": {
                                                "depth": {
                                                    "type": "integer"
                                                },
                                                "roots": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "nodes": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "sex": {
                                                                "type": "string"
                                                            },
                                                            "date_of_birth": {
                                                                "$ref": "#/components/schemas/PartialDate"
                                                            },
                                                            "breed": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "depth": {
                                                                "type": "integer"
                                                            },
                                                            "external_ids": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                },
                                                                "description": "nur für API-Clients mit Quellsystem (E199)"
                                                            }
                                                        }
                                                    }
                                                },
                                                "edges": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "dog": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "parent": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "role": {
                                                                "type": "string",
                                                                "enum": [
                                                                    "SIRE",
                                                                    "DAM"
                                                                ]
                                                            },
                                                            "verification_status": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}": {
            "get": {
                "summary": "Hundeakte lesen (Stammdaten)",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Hund",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/RequestId"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Dog"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/record": {
            "get": {
                "summary": "Hundeakte mit allen Abschnitten (gefiltert)",
                "description": "Stammdaten und die Abschnitte Registrierungen, Personen, Gesundheit, Genetik, Titel, Ergebnisse und Dokumente –\njeweils nur, was der Aufrufer sehen darf (T29). Züchter und Hundeführer sind öffentlich, Besitzer/Halter nur für\nZuständige oder mit Zustimmung; anonymisierte Personen erscheinen ohne ID.\n\nMit `presentation=1` zusätzlich die Darstellung für Fachprodukte (T122): `labels` (Klartexte der Codes und Stellen),\n`pedigree` (3 Generationen), `offspring` je Wurf und `litter_count` und `breeding_values` (für Stelle, Züchter und\nBesitzer, E102). Zuchtsperren/-auflagen (`breeding_restrictions`) stehen in jeder Hundeakte (E309).\n",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "presentation",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Gefilterte Hundeakte",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/RequestId"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/Dog"
                                                },
                                                {
                                                    "$ref": "#/components/schemas/DogRecordSections"
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/registrations": {
            "get": {
                "summary": "Registrierungen eines Hundes (gefiltert)",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Registrierungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Registration"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/people": {
            "get": {
                "summary": "Züchter, Besitzer, Halter eines Hundes (gefiltert)",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Personen am Hund",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Relationship"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/health-tests": {
            "get": {
                "summary": "Gesundheitsbefunde eines Hundes (gefiltert)",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Befunde",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/HealthTest"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/genetic-tests": {
            "get": {
                "summary": "Gentests eines Hundes (gefiltert)",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Gentests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/GeneticTest"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/genetic-markers": {
            "get": {
                "summary": "Einstufung je genetischem Marker (gefiltert)",
                "description": "Getestet oder „frei durch Abstammung“ (E34). Grundlage sind nur Tests, die der Aufrufer sehen darf.",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Einstufungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/MarkerFinding"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/titles": {
            "get": {
                "summary": "Titel eines Hundes (gefiltert)",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Titel",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/DogTitle"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/results": {
            "get": {
                "summary": "Ergebnisse eines Hundes (gefiltert)",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ergebnisse",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Result"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/measurements": {
            "get": {
                "summary": "Größenmessungen eines Hundes (gefiltert)",
                "description": "Widerristhöhe und Größenklasse vom Veranstaltungsort (E303, T169), sichtbar wie Ergebnisse, neueste zuerst.",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Messungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/DogMeasurement"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/exchange/dogs": {
            "get": {
                "summary": "Hunde im Austauschformat herunterladen",
                "description": "Bis zu 500 Hunde als Hunde-Collection im CANIDEX-Austauschformat (E315, Beschreibung unter /doc) – nur, was der Aufrufer sehen darf, ohne Personendaten.",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "ids",
                        "in": "query",
                        "required": true,
                        "description": "CX-IDs, durch Komma getrennt",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Hunde-Collection",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DogCollection"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}/exchange": {
            "get": {
                "summary": "Ein Hund im Austauschformat",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Hunde-Collection mit einem Hund",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DogCollection"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/exchange/validate": {
            "post": {
                "summary": "Hunde-Collection prüfen",
                "description": "Prüft eine Hunde-Collection im CANIDEX-Austauschformat (E315) vor der Lieferung – Aufbau und Codes gegen die Wertelisten; Fehler als „Pfad: Meldung“.",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DogCollection"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Ergebnis",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "valid",
                                                "dogs",
                                                "errors"
                                            ],
                                            "properties": {
                                                "valid": {
                                                    "type": "boolean"
                                                },
                                                "dogs": {
                                                    "type": "integer"
                                                },
                                                "errors": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/exchange/values": {
            "get": {
                "summary": "Wertelisten des Austauschformats",
                "description": "Welche Liste welche Felder des Austauschformats füllt, mit Anzahl der Einträge (E315).",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Listen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "list",
                                                    "fields",
                                                    "description",
                                                    "breed_filter",
                                                    "count",
                                                    "url"
                                                ],
                                                "properties": {
                                                    "list": {
                                                        "type": "string"
                                                    },
                                                    "fields": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "description": {
                                                        "type": "string"
                                                    },
                                                    "breed_filter": {
                                                        "type": "boolean"
                                                    },
                                                    "count": {
                                                        "type": "integer"
                                                    },
                                                    "url": {
                                                        "type": "string"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/exchange/values/{list}": {
            "get": {
                "summary": "Werte einer Liste suchen",
                "description": "Erlaubte Codes eines Felds im Austauschformat (E315) aus den Stammdaten, nur aktive Einträge. `q` sucht in Code, Name\nund Synonymen, `breed` (FCI-Nummer) lässt Einträge dieser Rasse und rassenunabhängige übrig. Befund- und Ergebnisarten\nmit ihrer Skala.\n",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "list",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "sexes",
                                "identifier-types",
                                "genetic-results",
                                "breeds",
                                "varieties",
                                "colours",
                                "markings",
                                "health-types",
                                "genetic-tests",
                                "markers",
                                "titles",
                                "event-types",
                                "event-classes",
                                "result-types"
                            ]
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "breed",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 10
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 500
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Einträge",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data",
                                        "meta"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "code",
                                                    "name"
                                                ],
                                                "properties": {
                                                    "code": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "breed": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "FCI-Nummer, null = für alle Rassen"
                                                    },
                                                    "organization": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "CX-ID der Stelle, null = plattformweit"
                                                    },
                                                    "scale": {
                                                        "type": "object",
                                                        "description": "Skala: type ENUM (values), NUMERIC (min, max, integer), BOOLEAN oder TEXT"
                                                    }
                                                },
                                                "additionalProperties": true
                                            }
                                        },
                                        "meta": {
                                            "type": "object",
                                            "required": [
                                                "list",
                                                "total",
                                                "page",
                                                "per_page",
                                                "last_page"
                                            ],
                                            "properties": {
                                                "list": {
                                                    "type": "string"
                                                },
                                                "total": {
                                                    "type": "integer"
                                                },
                                                "page": {
                                                    "type": "integer"
                                                },
                                                "per_page": {
                                                    "type": "integer"
                                                },
                                                "last_page": {
                                                    "type": "integer"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}/breeding-restrictions": {
            "get": {
                "summary": "Zuchtsperren und -auflagen eines Hundes",
                "description": "Geltende zuerst (E66, E309); die Begründung sehen nur der heutige Besitzer und die verhängende Stelle.",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Sperren und Auflagen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/BreedingRestriction"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/title-progress": {
            "get": {
                "summary": "Fortschritt zu Titeln",
                "description": "Je aktivem Titel mit Nachweis-Voraussetzung (E63), den der Hund noch nicht trägt: zählende Ergebnisse und Titel\n(nur bestandene, bestätigte und für den Aufrufer sichtbare), benötigt, fehlend (E303, T177). Ohne `all` nur Titel, zu\ndenen schon etwas zählt; erfüllte und fast erfüllte zuerst.\n",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "all",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Fortschritt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/TitleProgress"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/documents": {
            "get": {
                "summary": "Dokumentenordner eines Hundes (gefiltert)",
                "description": "Sichtbar, wenn der Aufrufer einen zugeordneten Datensatz intern lesen darf oder die Authority den Dokumenttyp veröffentlicht hat.",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Dokumente",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Document"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/attributes": {
            "get": {
                "summary": "Weitere Angaben eines Hundes (dynamische Attribute, gefiltert nach Sichtbarkeit)",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Attribute",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/DogAttribute"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/genotype-inferences": {
            "put": {
                "summary": "Abgeleitete Genotypen schreiben (Rassedatenbank)",
                "description": "Für Systeme einer Rassedatenbank mit eigenem Quellsystem (Genetik-BOT, A‑VZ6), WRITE auf GENETICS. Ableitungen sind\nkeine Labortests und werden nie bestätigt. Ein echter Test geht vor: `result` je Marker ist `STORED`, `TEST_EXISTS`\n(Test vorhanden, nichts gespeichert) oder `CONFLICT` (Test widerspricht – Ableitung verworfen, Datenqualitäts-Hinweis).\n",
                "security": [
                    {
                        "oauth2": [
                            "genetics:infer"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "inferences"
                                ],
                                "properties": {
                                    "inferences": {
                                        "type": "array",
                                        "minItems": 1,
                                        "maxItems": 200,
                                        "items": {
                                            "type": "object",
                                            "required": [
                                                "marker",
                                                "status"
                                            ],
                                            "properties": {
                                                "marker": {
                                                    "type": "string",
                                                    "example": "HUU_SLC2A9"
                                                },
                                                "status": {
                                                    "$ref": "#/components/schemas/MarkerStatus"
                                                },
                                                "genotype": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "example": "N/N"
                                                },
                                                "derived_from": {
                                                    "type": "object",
                                                    "properties": {
                                                        "dogs": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "tests": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Ergebnis je Marker",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "marker",
                                                    "result"
                                                ],
                                                "properties": {
                                                    "marker": {
                                                        "type": "string"
                                                    },
                                                    "result": {
                                                        "type": "string",
                                                        "enum": [
                                                            "STORED",
                                                            "TEST_EXISTS",
                                                            "CONFLICT"
                                                        ]
                                                    },
                                                    "genotype": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}/genotype-inferences/{marker}": {
            "delete": {
                "summary": "Abgeleiteten Genotyp entfernen (Rassedatenbank)",
                "security": [
                    {
                        "oauth2": [
                            "genetics:infer"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "marker",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "entfernt"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/pedigree": {
            "get": {
                "summary": "Stammbaum lesen",
                "description": "Ahnentafel mit Positionen; mehrfach auftretende Ahnen erscheinen an jeder ihrer Positionen.",
                "security": [
                    {
                        "oauth2": [
                            "pedigree:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "generations",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 10,
                            "default": 4
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ahnentafel",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/RequestId"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "dog",
                                                "generations",
                                                "ancestors"
                                            ],
                                            "properties": {
                                                "dog": {
                                                    "$ref": "#/components/schemas/DogSummary"
                                                },
                                                "generations": {
                                                    "type": "integer"
                                                },
                                                "ancestors": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/PedigreeEntry"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}/coi": {
            "get": {
                "summary": "Inzuchtkoeffizient (COI)",
                "description": "Inzuchtkoeffizient über n Generationen (Koeffizient der Abstammungsgleichheit, entspricht Wrights Pfadmethode).\nAhnen jenseits der Generationsgrenze gelten als nicht verwandt. Ohne bekannte Eltern ist der Wert 0.\n",
                "security": [
                    {
                        "oauth2": [
                            "pedigree:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "generations",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 10,
                            "default": 10
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Inzuchtkoeffizient",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "dog"
                                                    ],
                                                    "properties": {
                                                        "dog": {
                                                            "$ref": "#/components/schemas/DogSummary"
                                                        }
                                                    }
                                                },
                                                {
                                                    "$ref": "#/components/schemas/Kinship"
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/test-matings": {
            "get": {
                "summary": "Probeverpaarung",
                "description": "Inzuchtkoeffizient der Nachkommen einer geplanten Verpaarung (= Verwandtschaftskoeffizient von Rüde und Hündin) und Anpaarungsprognose je genetischem Marker (E34) auf Grundlage der Tests, die der Aufrufer sehen darf.",
                "security": [
                    {
                        "oauth2": [
                            "pedigree:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "sire",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/DogId"
                        }
                    },
                    {
                        "name": "dam",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/DogId"
                        }
                    },
                    {
                        "name": "generations",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 10,
                            "default": 10
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ergebnis der Probeverpaarung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "sire",
                                                        "dam",
                                                        "marker_prognosis"
                                                    ],
                                                    "properties": {
                                                        "sire": {
                                                            "$ref": "#/components/schemas/DogSummary"
                                                        },
                                                        "dam": {
                                                            "$ref": "#/components/schemas/DogSummary"
                                                        },
                                                        "marker_prognosis": {
                                                            "type": "array",
                                                            "items": {
                                                                "$ref": "#/components/schemas/MarkerPrognosis"
                                                            }
                                                        }
                                                    }
                                                },
                                                {
                                                    "$ref": "#/components/schemas/Kinship"
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/people": {
            "get": {
                "summary": "Personen suchen",
                "description": "Namenssuche (tippfehlertolerant). Gefunden wird nur, wessen Namen der Aufrufer sehen darf: Züchter und Personen\nmit Zustimmung öffentlich, Besitzer/Halter für die zuständige Organisation, jede Person sich selbst.\nAnonymisierte Personen und Personen mit Sperrvermerk erscheinen nicht öffentlich.\n",
                "security": [
                    {
                        "oauth2": [
                            "people:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "name",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 25
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Treffer",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data",
                                        "meta"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PersonSummary"
                                            }
                                        },
                                        "meta": {
                                            "$ref": "#/components/schemas/PageMeta"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/product-events/{ref}": {
            "put": {
                "summary": "Veranstaltung eines Fachprodukts anlegen oder ändern (CANIDEX Events)",
                "description": "Für API-Clients mit eigenem Quellsystem (E189), z. B. CANIDEX Events beim Öffnen der Meldung. Wiederholbar:\nSchlüssel ist das Quellsystem des Clients und `ref` (Kennung im Fachprodukt). Die Veranstaltung erscheint danach in\n`GET /events` mit `source.code` = Code des Quellsystems und `source.entry_url` = `entry_url`.\n`organization` = ausrichtender Verein: `organizer_account` muss dort heute Veranstaltungen pflegen dürfen\n(Administration oder Geschäftsstelle), sonst 422. Ohne `organization` (privat) gehört die Veranstaltung dem\nPlattformbetrieb, der Veranstalter steht nur als Name in den Details. `status` geht nur vorwärts\n(open/closed → PLANNED, running → RUNNING, finished → FINISHED, cancelled → CANCELLED); die Antwort nennt den\nStatus in Core.\n",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "ref",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-Z0-9]{4,20}$"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "type",
                                    "starts_on",
                                    "status"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "maxLength": 255
                                    },
                                    "type": {
                                        "type": "string",
                                        "description": "Code der Veranstaltungsart (E52, E185), z. B. FIELD_TRIAL, VGP, AGILITY, OTHER"
                                    },
                                    "kind": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Bezeichnung der Art im Fachprodukt"
                                    },
                                    "starts_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "ends_on": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "location": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "properties": {
                                            "venue": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            },
                                            "city": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            },
                                            "country": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "description": "ISO 3166-1 alpha-2"
                                            }
                                        }
                                    },
                                    "organization": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "ausrichtender Verein (CXO); null = privat"
                                    },
                                    "organizer_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "organizer_account": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Konto des Veranstalters (CXU), Pflicht mit organization"
                                    },
                                    "entry_deadline": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "entry_url": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Seite der Prüfung im Fachprodukt („Jetzt melden“)"
                                    },
                                    "status": {
                                        "type": "string",
                                        "enum": [
                                            "open",
                                            "closed",
                                            "running",
                                            "finished",
                                            "cancelled"
                                        ]
                                    },
                                    "classes": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "required": [
                                                "key"
                                            ],
                                            "properties": {
                                                "key": {
                                                    "type": "string"
                                                },
                                                "label": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            }
                                        }
                                    },
                                    "categories": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "required": [
                                                "key"
                                            ],
                                            "properties": {
                                                "key": {
                                                    "type": "string"
                                                },
                                                "label": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            }
                                        }
                                    },
                                    "fee_acceptance": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "description": "Annahme der Gebührenordnung durch den Veranstalter vor der Veranstaltung (E194); unbekannte Fassung → 422",
                                        "required": [
                                            "version",
                                            "price_cents",
                                            "accepted_at"
                                        ],
                                        "properties": {
                                            "version": {
                                                "type": "integer",
                                                "minimum": 1
                                            },
                                            "price_cents": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "description": "bei der Annahme angezeigter Preis je zugelassener Meldung"
                                            },
                                            "max_cents": {
                                                "type": [
                                                    "integer",
                                                    "null"
                                                ],
                                                "minimum": 0,
                                                "description": "bei der Annahme angezeigte Obergrenze je Veranstaltung (E396); fehlt sie, gilt die der Veranstaltungsart"
                                            },
                                            "accepted_at": {
                                                "type": "string",
                                                "format": "date-time"
                                            },
                                            "account": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "description": "Konto des Veranstalters (CXU)"
                                            }
                                        }
                                    },
                                    "field_rules": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "description": "Field Trial nach französischem Reglement (E191); erscheint in GET /events unter source.field_rules",
                                        "properties": {
                                            "variant": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "enum": [
                                                    "FTA",
                                                    "FTGN",
                                                    "FTGS",
                                                    null
                                                ]
                                            },
                                            "game": {
                                                "type": "array",
                                                "maxItems": 20,
                                                "items": {
                                                    "type": "string",
                                                    "maxLength": 40
                                                }
                                            },
                                            "shot": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ]
                                            },
                                            "retrieve": {
                                                "type": [
                                                    "boolean",
                                                    "null"
                                                ]
                                            },
                                            "conditions": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "maxLength": 500
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Veranstaltung in Core",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "id",
                                                "status"
                                            ],
                                            "properties": {
                                                "id": {
                                                    "$ref": "#/components/schemas/PublicId"
                                                },
                                                "status": {
                                                    "type": "string",
                                                    "enum": [
                                                        "PLANNED",
                                                        "RUNNING",
                                                        "FINISHED",
                                                        "PROCESSED",
                                                        "CANCELLED"
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/product-events/{ref}/results": {
            "put": {
                "summary": "Meldungen, Richter und Ergebnisse einer Veranstaltung aus einem Fachprodukt übermitteln",
                "description": "Nach der Veranstaltung (E189). Wiederholbar: ersetzt die Meldungen und Ergebnisse dieses Fachprodukts (Abgleich über\n`entries[].ref`); danach ist die Veranstaltung FINISHED. Hunde: CX-ID, sonst gleiche Chip- bzw. Zuchtbuchnummer,\nsonst neue ungeprüfte Akte; ohne CX-ID ist die Chipnummer Pflicht (normalisiert: 15 Ziffern oder alter Chip mit\n9–10 Zeichen). Ergebnisse eines Vereins sind bestätigt, private ungeprüft (zählen nicht für Titel und Zuchtregeln).\nRichter mit passender, gültiger Zulassung werden eingeteilt. `dogs` nennt je Meldung die CX-ID des Hundes (null =\nkeine Akte möglich, z. B. Rasse unbekannt), `judges` je Richter die eingeteilte Person (null = nur als Name geführt).\n",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "ref",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-Z0-9]{4,20}$"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "entries"
                                ],
                                "properties": {
                                    "judges": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "required": [
                                                "ref",
                                                "name"
                                            ],
                                            "properties": {
                                                "ref": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "account": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Konto des Richters (CXU) – zuerst zur Einteilung verwendet"
                                                },
                                                "email": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "E-Mail des bestätigten Kontos; nur Rückfall ohne account"
                                                },
                                                "chief": {
                                                    "type": [
                                                        "boolean",
                                                        "null"
                                                    ]
                                                },
                                                "groups": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "scoring": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "properties": {
                                            "mode": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            },
                                            "runs": {
                                                "type": "array",
                                                "items": {
                                                    "type": "string"
                                                }
                                            },
                                            "subjects": {
                                                "type": "array",
                                                "items": {
                                                    "type": "object",
                                                    "required": [
                                                        "key"
                                                    ],
                                                    "properties": {
                                                        "key": {
                                                            "type": "string"
                                                        },
                                                        "label": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "max": {
                                                            "type": [
                                                                "number",
                                                                "null"
                                                            ]
                                                        },
                                                        "factor": {
                                                            "type": [
                                                                "number",
                                                                "null"
                                                            ]
                                                        }
                                                    }
                                                }
                                            },
                                            "observations": {
                                                "type": "array",
                                                "description": "Feststellungen ohne Punkte (E191), z. B. Laut, Schussfestigkeit, Temperament – Werte je Lauf unter data.notes.<Schlüssel>",
                                                "items": {
                                                    "type": "object",
                                                    "required": [
                                                        "key"
                                                    ],
                                                    "properties": {
                                                        "key": {
                                                            "type": "string"
                                                        },
                                                        "label": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "options": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "entries": {
                                        "type": "array",
                                        "maxItems": 5000,
                                        "items": {
                                            "type": "object",
                                            "required": [
                                                "ref",
                                                "dog",
                                                "status"
                                            ],
                                            "properties": {
                                                "ref": {
                                                    "type": "string"
                                                },
                                                "account": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Konto der Meldung (CXU), Rückfall für den Hundeführer"
                                                },
                                                "handler_account": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Konto des Hundeführers (CXU) → handler_person_id"
                                                },
                                                "handler_name": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "handler_email": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "wird nicht gespeichert"
                                                },
                                                "dog": {
                                                    "type": "object",
                                                    "properties": {
                                                        "id": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "description": "CX-ID (CXD)"
                                                        },
                                                        "name": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "breed_fci": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "breed_name": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "sex": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "enum": [
                                                                "MALE",
                                                                "FEMALE",
                                                                "UNKNOWN",
                                                                null
                                                            ]
                                                        },
                                                        "born_on": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "format": "date"
                                                        },
                                                        "registration": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "chip": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "description": "Pflicht ohne id; 15 Ziffern oder 9–10 Buchstaben/Ziffern"
                                                        }
                                                    }
                                                },
                                                "class": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "class_label": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "category": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "category_label": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "group": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "start_number": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ]
                                                },
                                                "status": {
                                                    "type": "string",
                                                    "enum": [
                                                        "entered",
                                                        "accepted",
                                                        "rejected",
                                                        "withdrawn"
                                                    ]
                                                },
                                                "presence": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "enum": [
                                                        "present",
                                                        "absent",
                                                        null
                                                    ]
                                                },
                                                "measurement": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "description": "Größenmessung am Veranstaltungsort (E303, T169): Widerristhöhe in cm, Größenklasse der Sportart, Messrichter; ohne Angabe entfällt eine frühere Messung der Meldung",
                                                    "required": [
                                                        "height_cm"
                                                    ],
                                                    "properties": {
                                                        "height_cm": {
                                                            "type": "number",
                                                            "minimum": 10,
                                                            "maximum": 120
                                                        },
                                                        "size_class": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "pattern": "^[A-Za-z0-9_]{1,30}$",
                                                            "example": "INTERMEDIATE"
                                                        },
                                                        "measured_by": {
                                                            "type": [
                                                                "array",
                                                                "null"
                                                            ],
                                                            "maxItems": 5,
                                                            "items": {
                                                                "type": "string",
                                                                "maxLength": 255
                                                            }
                                                        }
                                                    }
                                                },
                                                "honours": {
                                                    "type": "array",
                                                    "maxItems": 20,
                                                    "description": "Plätze im Ehrenring (E248): BIG/BIS als Ergebnisart der Ausstellung, sonst <ART>_<CODE>",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "code",
                                                            "place"
                                                        ],
                                                        "properties": {
                                                            "code": {
                                                                "type": "string",
                                                                "pattern": "^[A-Z][A-Z0-9_]{1,29}$"
                                                            },
                                                            "label": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "place": {
                                                                "type": "integer",
                                                                "minimum": 1,
                                                                "maximum": 20
                                                            }
                                                        }
                                                    }
                                                },
                                                "results": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "run": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "run_label": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "grade": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "total": {
                                                                "type": [
                                                                    "number",
                                                                    "null"
                                                                ]
                                                            },
                                                            "time": {
                                                                "type": [
                                                                    "number",
                                                                    "null"
                                                                ]
                                                            },
                                                            "dis": {
                                                                "type": [
                                                                    "boolean",
                                                                    "null"
                                                                ]
                                                            },
                                                            "end": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "enum": [
                                                                    "dis",
                                                                    "abbruch",
                                                                    "krank",
                                                                    null
                                                                ],
                                                                "description": "Ausscheiden (E191): Disqualifikation, Abbruch, Abbruch wegen Krankheit → <ART>_END"
                                                            },
                                                            "end_reason": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "maxLength": 300,
                                                                "description": "Grund des Ausscheidens → <ART>_END_REASON"
                                                            },
                                                            "place": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ]
                                                            },
                                                            "data": {
                                                                "type": [
                                                                    "object",
                                                                    "null"
                                                                ],
                                                                "description": "Eingaben je Lauf; Punkte je Fach unter scores.<Schlüssel>, Feststellungen unter notes.<Schlüssel>, Vergaben unter award (Text oder Liste, E248: CAC, CACIB, BOB … → Ergebnisart mit true)"
                                                            },
                                                            "remark": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Übernommen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "event",
                                                "dogs",
                                                "judges"
                                            ],
                                            "properties": {
                                                "event": {
                                                    "$ref": "#/components/schemas/PublicId"
                                                },
                                                "dogs": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "description": "Meldung (ref) → CX-ID des Hundes"
                                                },
                                                "judges": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "description": "Richter (ref) → CX-ID der Person, null = nicht eingeteilt"
                                                },
                                                "fee": {
                                                    "oneOf": [
                                                        {
                                                            "type": "null"
                                                        },
                                                        {
                                                            "$ref": "#/components/schemas/EventFeeStatement"
                                                        }
                                                    ],
                                                    "description": "Abrechnung der Veranstaltungsgebühr (E194)"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/product-organizations/{organization}/features": {
            "get": {
                "summary": "Abo-Funktionen einer Organisation",
                "description": "Ob eine Organisation eine Abo-Funktion gebucht hat, z. B. das Kalender-Widget `EVENT_CALENDAR_WIDGET` (E311) oder `EVENTS_PRO` (E317). Nur API-Clients mit eigenem Quellsystem.",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Funktionen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "organization",
                                                "features"
                                            ],
                                            "properties": {
                                                "organization": {
                                                    "type": "object",
                                                    "properties": {
                                                        "id": {
                                                            "type": "string"
                                                        },
                                                        "name": {
                                                            "type": "string"
                                                        }
                                                    }
                                                },
                                                "features": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "feature",
                                                            "label",
                                                            "paid",
                                                            "allowed"
                                                        ],
                                                        "properties": {
                                                            "feature": {
                                                                "type": "string",
                                                                "example": "EVENT_CALENDAR_WIDGET"
                                                            },
                                                            "label": {
                                                                "type": "string",
                                                                "description": "mit Produkt vorweg (E312)"
                                                            },
                                                            "paid": {
                                                                "type": "boolean"
                                                            },
                                                            "allowed": {
                                                                "type": "boolean"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/product-users/{user}/features": {
            "get": {
                "summary": "Abo-Funktionen eines privaten Veranstalters",
                "description": "Ob die Person hinter einem Konto eine Person-Funktion von CANIDEX Events gebucht hat, z. B. `EVENTS_PRO_PERSON` (E317). Nur API-Clients mit eigenem Quellsystem; Konto ohne Person 404.",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "user",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "CXU-01ABCDEFGHJKMNPQRSTVWXYZ0"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Funktionen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "user",
                                                "features"
                                            ],
                                            "properties": {
                                                "user": {
                                                    "type": "object",
                                                    "properties": {
                                                        "id": {
                                                            "type": "string"
                                                        },
                                                        "name": {
                                                            "type": "string"
                                                        }
                                                    }
                                                },
                                                "features": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "feature",
                                                            "label",
                                                            "paid",
                                                            "allowed"
                                                        ],
                                                        "properties": {
                                                            "feature": {
                                                                "type": "string",
                                                                "example": "EVENTS_PRO_PERSON"
                                                            },
                                                            "label": {
                                                                "type": "string",
                                                                "description": "mit Produkt vorweg (E312)"
                                                            },
                                                            "paid": {
                                                                "type": "boolean"
                                                            },
                                                            "allowed": {
                                                                "type": "boolean"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/product-events/{ref}/entry-payments": {
            "get": {
                "summary": "Meldegeld-Zahlungen einer Veranstaltung",
                "description": "Ob der Veranstalter online Geld annehmen kann (`payee_ready`) und über welche Wege (`payee_providers`: PAYPAL = PayPal-Konto hinterlegt, E195; STRIPE = Stripe-Konto verbunden und geprüft, E406) sowie die Zahlungen, optional je Meldung (E305, T162). Offene Zahlungen werden dabei beim Anbieter nachgefragt.",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "ref",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-Z0-9]{4,20}$"
                        }
                    },
                    {
                        "name": "entry_ref",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 50
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Zahlungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "payee_ready",
                                                "payee_providers",
                                                "payments"
                                            ],
                                            "properties": {
                                                "payee_ready": {
                                                    "type": "boolean"
                                                },
                                                "payee_providers": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string",
                                                        "enum": [
                                                            "PAYPAL",
                                                            "STRIPE"
                                                        ]
                                                    }
                                                },
                                                "payments": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/EntryPayment"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Meldegeld online bezahlen",
                "description": "Legt bei PayPal eine Bestellung an, Empfänger ist das PayPal-Konto des Veranstalters (Zahler der\nVeranstaltungsgebühr, E195) – CANIDEX hält kein Geld (E305, T162). Der Teilnehmer stimmt über `approve_url` zu und\nkommt zu `return_url` zurück; danach `…/capture`. Ohne hinterlegtes PayPal-Konto des Veranstalters 422, Fehler bei\nPayPal 502. Erstattungen löst der Veranstalter in seinem PayPal-Konto aus.\n",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "ref",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-Z0-9]{4,20}$"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "entry_ref",
                                    "amount_cents",
                                    "return_url",
                                    "cancel_url"
                                ],
                                "properties": {
                                    "entry_ref": {
                                        "type": "string",
                                        "maxLength": 50,
                                        "description": "Kennung der Meldung im Fachprodukt"
                                    },
                                    "amount_cents": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 100000
                                    },
                                    "currency": {
                                        "type": "string",
                                        "enum": [
                                            "EUR",
                                            "CHF",
                                            "GBP",
                                            "USD",
                                            "CZK",
                                            "PLN",
                                            "HUF",
                                            "SEK",
                                            "NOK",
                                            "DKK"
                                        ],
                                        "default": "EUR"
                                    },
                                    "description": {
                                        "type": "string",
                                        "maxLength": 127
                                    },
                                    "return_url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "cancel_url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "locale": {
                                        "type": "string",
                                        "example": "de-DE"
                                    },
                                    "provider": {
                                        "type": "string",
                                        "enum": [
                                            "PAYPAL",
                                            "STRIPE"
                                        ],
                                        "description": "Zahlungsweg aus `payee_providers` (E406); ohne Angabe PayPal vor Stripe. Stripe: Direct Charge im Konto des Veranstalters, Rückkehr zu `return_url` ohne Zusatz – danach `…/capture`."
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Bestellung angelegt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EntryPayment"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "approve_url"
                                                    ],
                                                    "properties": {
                                                        "approve_url": {
                                                            "type": "string"
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "502": {
                        "description": "Fehler bei PayPal"
                    }
                }
            }
        },
        "/product-events/{ref}/entry-payments/{payment}/capture": {
            "post": {
                "summary": "Meldegeld nach der Zustimmung erfassen",
                "description": "Wiederholbar; eine erfasste Zahlung bleibt unverändert (E305).",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "ref",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-Z0-9]{4,20}$"
                        }
                    },
                    {
                        "name": "payment",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erfasst",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EntryPayment"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "502": {
                        "description": "Fehler bei PayPal"
                    }
                }
            }
        },
        "/product-events/{ref}/fee": {
            "get": {
                "summary": "Veranstaltungsgebühr einer Veranstaltung aus einem Fachprodukt (Annahme und Abrechnung)",
                "description": "E194: letzte Annahme der Gebührenordnung und die Abrechnung (zugelassene Meldungen × Preis je Meldung), die nach\n`PUT /product-events/{ref}/results` entsteht; vorher `statement` = null.\n",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "ref",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-Z0-9]{4,20}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Annahme und Abrechnung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "acceptance",
                                                "statement"
                                            ],
                                            "properties": {
                                                "acceptance": {
                                                    "oneOf": [
                                                        {
                                                            "type": "null"
                                                        },
                                                        {
                                                            "type": "object",
                                                            "required": [
                                                                "version",
                                                                "price_cents",
                                                                "accepted_at"
                                                            ],
                                                            "properties": {
                                                                "version": {
                                                                    "type": "integer"
                                                                },
                                                                "price_cents": {
                                                                    "type": "integer"
                                                                },
                                                                "max_cents": {
                                                                    "type": [
                                                                        "integer",
                                                                        "null"
                                                                    ]
                                                                },
                                                                "accepted_at": {
                                                                    "type": "string",
                                                                    "format": "date-time"
                                                                },
                                                                "account": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ]
                                                                }
                                                            }
                                                        }
                                                    ]
                                                },
                                                "statement": {
                                                    "oneOf": [
                                                        {
                                                            "type": "null"
                                                        },
                                                        {
                                                            "$ref": "#/components/schemas/EventFeeStatement"
                                                        }
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/product-events/{ref}/fee/pay": {
            "post": {
                "summary": "Offene Abrechnung jetzt vom hinterlegten Zahlungsmittel begleichen (Fachprodukt)",
                "description": "E195, E411: „Jetzt begleichen“. Nur mit eingerichtetem Anbieter und aktiver Hinterlegung des Zahlers (sonst 422); `paid` = abgebucht, sonst steht der Grund an der Abrechnung.",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "ref",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ergebnis der Abbuchung und Stand der Abrechnung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "paid",
                                                "statement"
                                            ],
                                            "properties": {
                                                "paid": {
                                                    "type": "boolean"
                                                },
                                                "statement": {
                                                    "$ref": "#/components/schemas/EventFeeStatement"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/event-fee-terms": {
            "get": {
                "summary": "Gültige Gebührenordnung und Preis je Meldung für eine Veranstaltungsart (Fachprodukt)",
                "description": "E194: Der Veranstalter nimmt diese Fassung vor jeder Veranstaltung an (`fee_acceptance` an `PUT /product-events/{ref}`).\nPreis je zugelassener Meldung nach Veranstaltungsart (eigener Preis, sonst der übergeordneten Art, sonst Standard).\n",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Code der Veranstaltungsart, z. B. HZP"
                    },
                    {
                        "name": "date",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "description": "Stichtag des Preises (Standard: heute)"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Gebührenordnung und Preis",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "currency",
                                                "price_cents",
                                                "terms"
                                            ],
                                            "properties": {
                                                "currency": {
                                                    "type": "string"
                                                },
                                                "price_cents": {
                                                    "type": "integer"
                                                },
                                                "max_cents": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Obergrenze je Veranstaltung (E396), null = ohne"
                                                },
                                                "terms": {
                                                    "type": "object",
                                                    "required": [
                                                        "version",
                                                        "title",
                                                        "body",
                                                        "valid_from"
                                                    ],
                                                    "properties": {
                                                        "version": {
                                                            "type": "integer"
                                                        },
                                                        "title": {
                                                            "type": "string"
                                                        },
                                                        "body": {
                                                            "type": "string"
                                                        },
                                                        "valid_from": {
                                                            "type": "string",
                                                            "format": "date"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/stripe-connect": {
            "get": {
                "summary": "Stripe-Konto des Veranstalters (Fachprodukt)",
                "description": "E406: Stand des verbundenen Stripe-Kontos des Zahlers der Veranstaltungsgebühr (Verein bzw. Person des Kontos, wie `/event-fee-mandates`); ein noch nicht geprüftes Konto wird bei Stripe nachgefragt.",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 40
                        }
                    },
                    {
                        "name": "account",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "maxLength": 40
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Stand",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "available",
                                                "connected",
                                                "ready",
                                                "details_submitted",
                                                "payouts_enabled",
                                                "account_id"
                                            ],
                                            "properties": {
                                                "available": {
                                                    "type": "boolean",
                                                    "description": "Stripe ist im Plattformbetrieb eingerichtet"
                                                },
                                                "connected": {
                                                    "type": "boolean"
                                                },
                                                "ready": {
                                                    "type": "boolean",
                                                    "description": "Stripe hat geprüft, Zahlungen möglich"
                                                },
                                                "details_submitted": {
                                                    "type": "boolean"
                                                },
                                                "payouts_enabled": {
                                                    "type": "boolean"
                                                },
                                                "account_id": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Kennung bei Stripe (acct_…)"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "post": {
                "summary": "Stripe-Konto verbinden (Fachprodukt)",
                "description": "E406: legt beim ersten Mal ein verbundenes Konto bei Stripe an (volles Stripe-Dashboard, Prüfung durch Stripe; Name, Land und E-Mail aus den Rechnungsdaten) und liefert die einmalige Adresse zur Einrichtung. `refresh_url` ruft Stripe bei abgelaufenem Link – dann erneut aufrufen.",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "account",
                                    "return_url",
                                    "refresh_url"
                                ],
                                "properties": {
                                    "organization": {
                                        "type": "string",
                                        "maxLength": 40
                                    },
                                    "account": {
                                        "type": "string",
                                        "maxLength": 40
                                    },
                                    "return_url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "refresh_url": {
                                        "type": "string",
                                        "format": "uri"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Adresse zur Einrichtung bei Stripe",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "url"
                                            ],
                                            "properties": {
                                                "url": {
                                                    "type": "string",
                                                    "format": "uri"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "502": {
                        "description": "Stripe meldet einen Fehler"
                    }
                }
            }
        },
        "/event-fee-mandates": {
            "get": {
                "summary": "Hinterlegung des Zahlers für die Veranstaltungsgebühr prüfen (Fachprodukt)",
                "description": "E195, E411: Vor dem Öffnen der Meldung muss der Zahler (Verein bzw. Person des Kontos) ein Zahlungsmittel hinterlegt haben (`mandate.provider` PAYPAL oder STRIPE, `mandate.method` in Worten)\nund darf keine überfällige Abrechnung haben. Bei einem Verein muss das Konto dort Veranstaltungen ausrichten dürfen (sonst 422).\n",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "ausrichtender Verein (CXO); leer = privat, Zahler ist die Person des Kontos"
                    },
                    {
                        "name": "account",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Konto des Veranstalters (CXU)"
                    },
                    {
                        "name": "verify",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "boolean"
                        },
                        "description": "Hinterlegung live beim Anbieter prüfen (PayPal bzw. Stripe, vor dem Öffnen der Meldung)"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Stand der Hinterlegung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EventFeeMandateState"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "post": {
                "summary": "Zahlungsmittel hinterlegen – Adresse der Bezahlmaske im Core (Fachprodukt)",
                "description": "E195, E411: `approve_url` führt in die Bezahlmaske von CANIDEX (Rechnungsdaten, Zahlungsart: Karte, Apple Pay/Google Pay,\nSEPA-Lastschrift, PayPal, Amazon Pay, Revolut Pay). Danach Rückkehr zu `return_url` mit `approval_token_id` (bei PayPal\ndirekt nach der Zustimmung bei PayPal), dann `POST /event-fee-mandates/confirm` mit diesem Wert als `setup_token`.\n`setup_token` in der Antwort ist der Schlüssel des Bezahlvorgangs.\n",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "account",
                                    "return_url",
                                    "cancel_url"
                                ],
                                "properties": {
                                    "organization": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "account": {
                                        "type": "string"
                                    },
                                    "return_url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "cancel_url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "locale": {
                                        "type": "string",
                                        "description": "z. B. de-DE"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Hinterlegung begonnen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "setup_token",
                                                "approve_url"
                                            ],
                                            "properties": {
                                                "setup_token": {
                                                    "type": "string"
                                                },
                                                "approve_url": {
                                                    "type": "string",
                                                    "format": "uri"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "502": {
                        "description": "PayPal nicht eingerichtet oder nicht erreichbar",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "message"
                                    ],
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/event-fee-mandates/billing": {
            "put": {
                "summary": "Rechnungsdaten des Zahlers anlegen oder ändern (Fachprodukt)",
                "description": "E195: Name, Anschrift und E-Mail sind Pflicht; ohne vollständige Rechnungsdaten öffnet keine Meldung. Jede Abrechnung hält sie bei Erstellung fest.",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "account",
                                    "name",
                                    "street",
                                    "postal_code",
                                    "city",
                                    "country",
                                    "email"
                                ],
                                "properties": {
                                    "organization": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "account": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "contact_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "street": {
                                        "type": "string"
                                    },
                                    "postal_code": {
                                        "type": "string"
                                    },
                                    "city": {
                                        "type": "string"
                                    },
                                    "country": {
                                        "type": "string"
                                    },
                                    "email": {
                                        "type": "string",
                                        "format": "email"
                                    },
                                    "phone": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "vat_id": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "register_number": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Stand der Hinterlegung mit Rechnungsdaten",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EventFeeMandateState"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/event-fee-mandates/billing/paypal": {
            "post": {
                "summary": "Rechnungsdaten mit dem hinterlegten PayPal-Konto abgleichen (Fachprodukt)",
                "description": "E195: aktuelle Daten von PayPal abrufen und Name, Anschrift, E-Mail und Telefon in die Rechnungsdaten übernehmen. Ohne Hinterlegung 422.",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "account"
                                ],
                                "properties": {
                                    "organization": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "account": {
                                        "type": "string"
                                    },
                                    "next_url": {
                                        "type": "string",
                                        "format": "uri"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Stand der Hinterlegung mit Rechnungsdaten",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EventFeeMandateState"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "502": {
                        "description": "PayPal nicht eingerichtet oder nicht erreichbar",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "message"
                                    ],
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/event-fee-mandates/confirm": {
            "post": {
                "summary": "Hinterlegung nach der Rückkehr bestätigen (Fachprodukt)",
                "description": "E195, E411: speichert die Zahlungsmethode (PayPal) bzw. bestätigt die in der Bezahlmaske schon gespeicherte (Stripe) und ersetzt eine bisherige Hinterlegung des Zahlers.",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "account",
                                    "setup_token"
                                ],
                                "properties": {
                                    "organization": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "account": {
                                        "type": "string"
                                    },
                                    "setup_token": {
                                        "type": "string"
                                    },
                                    "next_url": {
                                        "type": "string",
                                        "format": "uri",
                                        "description": "Ziel nach der Freigabe der Kontodaten bei PayPal"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Stand der Hinterlegung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EventFeeMandateState"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "502": {
                        "description": "PayPal nicht eingerichtet oder nicht erreichbar",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "message"
                                    ],
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/judges": {
            "get": {
                "summary": "Richter mit Zulassung suchen (Fachprodukt, z. B. CANIDEX Events)",
                "description": "Für API-Clients mit eigenem Quellsystem (E189 Nachtrag). Personen mit einer am Stichtag gültigen oder künftigen\nRichter-Zulassung, Suche im Namen (Wortanfänge, Vor-/Nachname in beliebiger Reihenfolge). Personen mit\nSperrvermerk und anonymisierte erscheinen nicht. Nie Kontaktdaten: Einladen nur über `POST /judge-invitations`.\n`qualified` = am Stichtag gültige Zulassung für genau die Art `type` (Code), ohne `type` irgendeine gültige\nZulassung; zugelassene zuerst, dann nach Namen. `has_account` = false heißt „kein Konto“ – nicht einladbar.\n",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Code der Veranstaltungsart, z. B. FIELD_TRIAL"
                    },
                    {
                        "name": "date",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "description": "Stichtag, Standard heute"
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 25,
                            "default": 25
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Treffer",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "country",
                                                    "has_account",
                                                    "qualified",
                                                    "qualifications"
                                                ],
                                                "properties": {
                                                    "id": {
                                                        "$ref": "#/components/schemas/PublicId"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "country": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ],
                                                        "description": "ISO 3166-1 alpha-2"
                                                    },
                                                    "has_account": {
                                                        "type": "boolean"
                                                    },
                                                    "qualified": {
                                                        "type": "boolean"
                                                    },
                                                    "qualifications": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                                "organization",
                                                                "event_type",
                                                                "event_type_name",
                                                                "breed",
                                                                "valid_from",
                                                                "valid_until"
                                                            ],
                                                            "properties": {
                                                                "organization": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ],
                                                                    "description": "zulassende Stelle (Kurzname)"
                                                                },
                                                                "event_type": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ]
                                                                },
                                                                "event_type_name": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ]
                                                                },
                                                                "breed": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ],
                                                                    "description": "Rasse bzw. FCI-Gruppe/Sektion, null = alle"
                                                                },
                                                                "valid_from": {
                                                                    "$ref": "#/components/schemas/Date"
                                                                },
                                                                "valid_until": {
                                                                    "$ref": "#/components/schemas/Date"
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/judge-invitations": {
            "post": {
                "summary": "Richter einladen – Core verschickt die E-Mail (Fachprodukt, z. B. CANIDEX Events)",
                "description": "Für API-Clients mit eigenem Quellsystem (E189 Nachtrag). Core schickt die Einladung in der Sprache des Kontos an\ndie E-Mail des CANIDEX-Kontos der Person; das Fachprodukt erfährt die Adresse nicht. `url` muss auf die beim\nQuellsystem hinterlegte Adresse des Fachprodukts zeigen (gleiches Schema, Host und Port), sonst 422. Ohne aktives\nKonto 422. Der Versand steht im Audit Log (ohne Link). Rate Limit: je Client 30/Minute und 500/Tag, je Person\n10/Stunde.\n",
                "security": [
                    {
                        "oauth2": [
                            "events:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "person",
                                    "url",
                                    "event_name"
                                ],
                                "properties": {
                                    "person": {
                                        "type": "string",
                                        "description": "CX-ID der Person (CXP) aus GET /judges"
                                    },
                                    "url": {
                                        "type": "string",
                                        "description": "Link zur Einladung im Fachprodukt (mit Token)"
                                    },
                                    "event_name": {
                                        "type": "string",
                                        "maxLength": 255
                                    },
                                    "event_date": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "event_place": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 255
                                    },
                                    "inviter": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 255,
                                        "description": "Einladender (Verein oder Veranstalter)"
                                    },
                                    "role": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "enum": [
                                            "judge",
                                            null
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "E-Mail wird verschickt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "sent"
                                            ],
                                            "properties": {
                                                "sent": {
                                                    "type": "boolean"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/me": {
            "get": {
                "summary": "Eigenes Konto (Anmeldung über CANIDEX)",
                "description": "Für Fachprodukte, die sich über CANIDEX anmelden (Authorization Code + PKCE, T88) – wie OpenID-Userinfo: Konto,\nverknüpfte Person und die heute gültigen Rollen je Organisation. Nur mit einem Benutzer-Token.\n",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Konto",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "id",
                                                "name",
                                                "email",
                                                "email_verified",
                                                "two_factor",
                                                "person",
                                                "organizations"
                                            ],
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "CANIDEX-ID des Kontos (CXU)"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "email": {
                                                    "type": "string"
                                                },
                                                "email_verified": {
                                                    "type": "boolean"
                                                },
                                                "locale": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "theme": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "enum": [
                                                        "light",
                                                        "dark",
                                                        null
                                                    ],
                                                    "description": "Farbschema der Oberfläche (E255), null = Systemeinstellung"
                                                },
                                                "insights": {
                                                    "type": "object",
                                                    "required": [
                                                        "consent",
                                                        "visitor"
                                                    ],
                                                    "properties": {
                                                        "consent": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "enum": [
                                                                "granted",
                                                                "denied",
                                                                null
                                                            ]
                                                        },
                                                        "visitor": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "format": "uuid"
                                                        }
                                                    },
                                                    "description": "Einwilligung in die Nutzungsauswertung (E275); visitor = Besuchsschlüssel des Kontos, nur bei Zustimmung"
                                                },
                                                "two_factor": {
                                                    "type": "boolean"
                                                },
                                                "person": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "description": "Verknüpfte Person; Anrede, Vor-/Nachname und Land für Meldungen (E181)",
                                                    "properties": {
                                                        "id": {
                                                            "type": "string"
                                                        },
                                                        "name": {
                                                            "type": "string"
                                                        },
                                                        "salutation": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "enum": [
                                                                "MS",
                                                                "MR",
                                                                null
                                                            ]
                                                        },
                                                        "first_name": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "last_name": {
                                                            "type": "string"
                                                        },
                                                        "country": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "description": "ISO 3166-1 alpha-2"
                                                        }
                                                    }
                                                },
                                                "organizations": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "role": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "description": "Kein Benutzer-Token bzw. Scope fehlt"
                    }
                }
            }
        },
        "/me/areas": {
            "get": {
                "summary": "Arbeitsbereiche des Kontos",
                "description": "Welche Bereiche das Konto betreten darf (E28, E323) – Verein, Rassedatenbank, Verband & FCI je Organisation,\ndazu Richter, Plattformbetrieb und Meine Daten. Dieselbe Ermittlung wie die Bereichsauswahl der Oberfläche\n(Mitgliedschaft oder Amt mit Rolle „öffnet den Arbeitsbereich“). Nur mit Benutzer-Token.\nMit `organization` (CX-ID, nur zusammen mit `area`) nur diese Organisation – auch ohne eigenen Eintrag, wenn das\nKonto sie verwalten darf, z. B. über das Recht des Plattformbetriebs (dann `via_platform`, E374); sonst leer.\n",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "area",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "club",
                                "database",
                                "federation",
                                "judge",
                                "platform",
                                "me"
                            ]
                        }
                    },
                    {
                        "name": "organization",
                        "in": "query",
                        "description": "CX-ID einer Organisation (nur mit area)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Bereiche",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "area",
                                                    "via_platform",
                                                    "organization"
                                                ],
                                                "properties": {
                                                    "area": {
                                                        "type": "string"
                                                    },
                                                    "via_platform": {
                                                        "type": "boolean",
                                                        "description": "nur über das Recht des Plattformbetriebs (E158)"
                                                    },
                                                    "organization": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "type": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "section": {
                                                                "type": "boolean",
                                                                "description": "Untergruppe (E87)"
                                                            },
                                                            "general": {
                                                                "type": "boolean",
                                                                "description": "ohne Zuchtseiten (E192)"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            }
        },
        "/me/entitlements": {
            "get": {
                "summary": "Abo-Stand des eigenen Kontos",
                "description": "Je Funktion, ob sie kostenpflichtig ist und ob die Person sie nutzen darf (E67). Für „gesperrt“-Hinweise in Fachprodukten; beim Schreiben prüft CANIDEX erneut. Nur mit Benutzer-Token und verknüpfter Person.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Funktionen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "feature",
                                                    "label",
                                                    "paid",
                                                    "allowed"
                                                ],
                                                "properties": {
                                                    "feature": {
                                                        "type": "string",
                                                        "description": "Code der Funktion, z. B. PUPPY_DIARY, MATING_PLANNER, BREEDER, LITTER_LISTING (T184); `label` beginnt mit dem Produkt (E312)",
                                                        "example": "PUPPY_DIARY"
                                                    },
                                                    "label": {
                                                        "type": "string"
                                                    },
                                                    "paid": {
                                                        "type": "boolean"
                                                    },
                                                    "allowed": {
                                                        "type": "boolean"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            }
        },
        "/me/addresses": {
            "get": {
                "summary": "Eigene Anschriften",
                "description": "Heute gültige Anschriften der eigenen Person, Hauptanschrift zuerst – z. B. zur Vorbelegung der Zwingeranmeldung (E119). Nur mit Benutzer-Token und verknüpfter Person.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Anschriften",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/Address"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "id",
                                                            "is_primary"
                                                        ],
                                                        "properties": {
                                                            "id": {
                                                                "type": "integer"
                                                            },
                                                            "region": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "is_primary": {
                                                                "type": "boolean"
                                                            }
                                                        }
                                                    }
                                                ]
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            }
        },
        "/me/invoices": {
            "get": {
                "summary": "Eigene Rechnungen",
                "description": "Rechnungen und Gutschriften zu Zahlungen der eigenen Person (E238), neueste zuerst. Erstellt vom Rechnungssystem (Office); `ready` = PDF liegt vor (`pdf_url`). Gutschriften mit negativem Betrag.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Rechnungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Invoice"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            }
        },
        "/me/invoices/{invoice}/pdf": {
            "get": {
                "summary": "PDF einer eigenen Rechnung",
                "description": "PDF einer ausgestellten Rechnung oder Gutschrift der eigenen Person (E238). Fremde oder noch nicht ausgestellte → 404.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "invoice",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "PDF",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/me/kennels": {
            "get": {
                "summary": "Eigene Zwinger",
                "description": "Zwinger, deren heutiger Inhaber die eigene Person ist (E214) – mit Stelle der Anmeldung, Inhabern, Zahl der Würfe und letztem Wurf.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Zwinger",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/KennelSummary"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "club",
                                                            "owners",
                                                            "litters",
                                                            "last_litter"
                                                        ],
                                                        "properties": {
                                                            "club": {
                                                                "oneOf": [
                                                                    {
                                                                        "type": "null"
                                                                    },
                                                                    {
                                                                        "type": "object",
                                                                        "required": [
                                                                            "id",
                                                                            "name"
                                                                        ],
                                                                        "properties": {
                                                                            "id": {
                                                                                "$ref": "#/components/schemas/PublicId"
                                                                            },
                                                                            "name": {
                                                                                "type": "string"
                                                                            }
                                                                        }
                                                                    }
                                                                ]
                                                            },
                                                            "owners": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "object",
                                                                    "required": [
                                                                        "id",
                                                                        "name"
                                                                    ],
                                                                    "properties": {
                                                                        "id": {
                                                                            "$ref": "#/components/schemas/PublicId"
                                                                        },
                                                                        "name": {
                                                                            "type": "string"
                                                                        }
                                                                    }
                                                                }
                                                            },
                                                            "litters": {
                                                                "type": "integer"
                                                            },
                                                            "last_litter": {
                                                                "oneOf": [
                                                                    {
                                                                        "type": "null"
                                                                    },
                                                                    {
                                                                        "type": "object",
                                                                        "required": [
                                                                            "id",
                                                                            "letter",
                                                                            "whelped_on"
                                                                        ],
                                                                        "properties": {
                                                                            "id": {
                                                                                "$ref": "#/components/schemas/PublicId"
                                                                            },
                                                                            "letter": {
                                                                                "type": "string"
                                                                            },
                                                                            "whelped_on": {
                                                                                "type": "string",
                                                                                "format": "date"
                                                                            }
                                                                        }
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    }
                                                ]
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            },
            "post": {
                "summary": "Eigenen geschützten Zwinger eines Vereins ohne CANIDEX eintragen",
                "description": "Arbeitet der Verein nicht mit CANIDEX (`in_canidex: false`, E216), wird ein Zwinger nicht angemeldet, sondern\nmit seinem Schutz eingetragen: Verein, Name, Namensstellung, FCI-Nummer, geschützt seit und die\nZwingerschutzkarte als Dokument (PDF, JPG, PNG, bis 10 MB), optional weitere Inhaber und Aktenzeichen. Die Person\ndes Kontos ist Hauptinhaber. Der Zwinger ist sofort geschützt (Verbindlichkeit SUBMITTED) und als vom Inhaber\neingetragen gekennzeichnet; der Verein kann ihn nachprüfen, sobald er mit CANIDEX arbeitet. Arbeitet der Verein\nmit CANIDEX oder ist der Name schon geschützt, kommt 422. Nur mit Benutzer-Token.\n",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "club",
                                    "name",
                                    "name_position",
                                    "fci_number",
                                    "protected_at",
                                    "document"
                                ],
                                "properties": {
                                    "club": {
                                        "type": "string",
                                        "description": "Öffentliche ID des Vereins"
                                    },
                                    "name": {
                                        "type": "string",
                                        "maxLength": 100
                                    },
                                    "name_position": {
                                        "type": "string",
                                        "enum": [
                                            "SUFFIX",
                                            "PREFIX"
                                        ]
                                    },
                                    "co_owners": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "description": "Öffentliche IDs weiterer Inhaber"
                                    },
                                    "fci_number": {
                                        "type": "string",
                                        "maxLength": 50
                                    },
                                    "protected_at": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "document": {
                                        "type": "string",
                                        "format": "binary",
                                        "description": "Zwingerschutzkarte"
                                    },
                                    "reference": {
                                        "type": "string",
                                        "maxLength": 100
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Eingetragen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/KennelProfile"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/matings": {
            "get": {
                "summary": "Verpaarungen der eigenen Zwinger",
                "description": "Genehmigte Verpaarungen der Zwinger, deren heutiger Inhaber die eigene Person ist, zuletzt genehmigte zuerst.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Verpaarungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Mating"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            }
        },
        "/me/litters": {
            "get": {
                "summary": "Würfe der eigenen Zwinger",
                "description": "Würfe der Zwinger, deren heutiger Inhaber die eigene Person ist, neueste zuerst – mit Abnahme (Anmeldung, angekündigter Termin) und Papieren.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Würfe",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Litter"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            }
        },
        "/me/dogs": {
            "get": {
                "summary": "Eigene Hunde",
                "description": "Hunde, deren Züchter, heutiger Besitzer oder Hundeführer die eigene Person ist, nach Name und seitenweise – mit den eigenen Rollen (`BREEDER`, `OWNER`, `HANDLER`).",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "description": "Suche: Wortanfänge im vollen Namen, Chip- oder Zuchtbuchnummer, CANIDEX-ID",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "sex",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "MALE",
                                "FEMALE"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Hunde",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data",
                                        "meta"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/Dog"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "my_roles"
                                                        ],
                                                        "properties": {
                                                            "my_roles": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string",
                                                                    "enum": [
                                                                        "BREEDER",
                                                                        "OWNER",
                                                                        "HANDLER"
                                                                    ]
                                                                }
                                                            }
                                                        }
                                                    }
                                                ]
                                            }
                                        },
                                        "meta": {
                                            "$ref": "#/components/schemas/PageMeta"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            }
        },
        "/me/dogs/{dog}": {
            "get": {
                "summary": "Ein eigener Hund",
                "description": "Hund, dessen Züchter, heutiger Besitzer oder Hundeführer die eigene Person ist, mit den eigenen Rollen – sonst 404.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Hund",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/Dog"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "my_roles",
                                                        "microchip",
                                                        "registrations",
                                                        "keeps"
                                                    ],
                                                    "properties": {
                                                        "my_roles": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string",
                                                                "enum": [
                                                                    "BREEDER",
                                                                    "OWNER",
                                                                    "HANDLER"
                                                                ]
                                                            }
                                                        },
                                                        "registrations": {
                                                            "type": "array",
                                                            "description": "Gültige Zuchtbuchnummern (Stand ACTIVE, auch unbestätigte, ohne abgelehnte); `confirmed` bei CONFIRMED",
                                                            "items": {
                                                                "type": "object",
                                                                "required": [
                                                                    "registry",
                                                                    "number",
                                                                    "confirmed"
                                                                ],
                                                                "properties": {
                                                                    "registry": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ]
                                                                    },
                                                                    "number": {
                                                                        "type": "string"
                                                                    },
                                                                    "confirmed": {
                                                                        "type": "boolean"
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "microchip": {
                                                            "type": "object",
                                                            "required": [
                                                                "value",
                                                                "confirmed",
                                                                "editable"
                                                            ],
                                                            "description": "Heutige Chipnummer (E218); `editable`, solange sie nicht bestätigt ist und die Person Züchter oder Besitzer ist",
                                                            "properties": {
                                                                "value": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ]
                                                                },
                                                                "confirmed": {
                                                                    "type": "boolean"
                                                                },
                                                                "editable": {
                                                                    "type": "boolean"
                                                                }
                                                            }
                                                        },
                                                        "keeps": {
                                                            "type": "boolean",
                                                            "description": "Züchter, heutiger Besitzer oder Welpe eines eigenen Wurfs – Befund, Gentest und Berichtigung melden (E220)"
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/me/dogs/{dog}/microchip": {
            "put": {
                "summary": "Chipnummer eines eigenen Hundes eintragen",
                "description": "Chipnummer eines Hundes, dessen Züchter oder heutiger Besitzer die eigene Person ist, oder eines Welpen eines\neigenen Wurfs (E218), sonst 403. Gilt als vom Züchter angegeben (SUBMITTED) und ersetzt eine unbestätigte\nNummer; eine bestätigte bleibt (422, Änderung über die Berichtigung). Ungültig oder schon bei einem anderen Hund:\n422. Nur mit Benutzer-Token.\n",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "microchip"
                                ],
                                "properties": {
                                    "microchip": {
                                        "type": "string",
                                        "maxLength": 30
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Gespeichert",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "value",
                                                "confirmed"
                                            ],
                                            "properties": {
                                                "value": {
                                                    "type": "string"
                                                },
                                                "confirmed": {
                                                    "type": "boolean"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/dogs/{dog}/registration": {
            "put": {
                "summary": "Zuchtbuchnummer eines Welpen eintragen",
                "description": "Zuchtbuchnummer eines Welpen aus einem eigenen Wurf, solange dessen Verein nicht mit CANIDEX arbeitet (E218) –\nim extern geführten Zuchtbuch des Vereins (wird bei Bedarf angelegt), vom Züchter angegeben (SUBMITTED). Ein\nbestätigter Eintrag bleibt; Verein mit CANIDEX oder Nummer schon vergeben: 422. Nur mit Benutzer-Token.\n",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "registration_number"
                                ],
                                "properties": {
                                    "registration_number": {
                                        "type": "string",
                                        "maxLength": 50
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Gespeichert",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "registration_number",
                                                "registry",
                                                "confirmed"
                                            ],
                                            "properties": {
                                                "registration_number": {
                                                    "type": "string"
                                                },
                                                "registry": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "confirmed": {
                                                    "type": "boolean"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/litters/{litter}/inspection": {
            "post": {
                "summary": "Wurfabnahme eines Vereins ohne CANIDEX eintragen",
                "description": "Arbeitet der Verein des Wurfs nicht mit CANIDEX (E218), trägt ein heutiger Inhaber des Zwingers die Abnahme\nnach dem Protokoll ein: Datum (nicht in der Zukunft), Zuchtwart (Name), Abnahmeprotokoll als Dokument (PDF, JPG,\nPNG, bis 10 MB), optional Bemerkungen und Aktenzeichen; je Welpe (`puppies[CXD-…]`) abgenommen ja/nein,\nChipnummer (Pflicht, 15 Ziffern), optional Bemerkung und Zuchtbuchnummer (nur abgenommene Welpen). Der Wurf\ngilt als abgenommen (Verbindlichkeit SUBMITTED, Abstammung unbestätigt), gekennzeichnet wie ein selbst\nbestätigter Bescheid (E215). Ohne Anmeldung zur Abnahme gilt sie mit dem Eintrag als erfolgt. Verein mit CANIDEX,\nschon abgenommen oder unvollständig: 422. Nur mit Benutzer-Token.\n",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "litter",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXW-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "inspected_on",
                                    "inspector",
                                    "document",
                                    "puppies"
                                ],
                                "properties": {
                                    "inspected_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "inspector": {
                                        "type": "string",
                                        "maxLength": 255,
                                        "description": "Name des Zuchtwarts"
                                    },
                                    "notes": {
                                        "type": "string",
                                        "maxLength": 2000
                                    },
                                    "reference": {
                                        "type": "string",
                                        "maxLength": 100
                                    },
                                    "document": {
                                        "type": "string",
                                        "format": "binary",
                                        "description": "Abnahmeprotokoll"
                                    },
                                    "puppies": {
                                        "type": "object",
                                        "description": "je Welpe (öffentliche ID als Schlüssel)",
                                        "additionalProperties": {
                                            "type": "object",
                                            "required": [
                                                "accepted",
                                                "microchip"
                                            ],
                                            "properties": {
                                                "accepted": {
                                                    "type": "boolean"
                                                },
                                                "microchip": {
                                                    "type": "string",
                                                    "maxLength": 30
                                                },
                                                "registration_number": {
                                                    "type": "string",
                                                    "maxLength": 50
                                                },
                                                "remarks": {
                                                    "type": "string",
                                                    "maxLength": 500
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "204": {
                        "description": "Eingetragen"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/dogs/{dog}/title-options": {
            "get": {
                "summary": "Titelauswahl an einem eigenen Hund",
                "description": "Für „Titel beantragen“ (E61, E63): aktive Titel, die der Hund noch nicht trägt, nach vergebender Stelle; seine\nVeranstaltungsergebnisse als Grundlage; gehaltene Titel als Nachweis; `locked` ohne Abo „Titel beantragen“. Nur für\nHunde, deren Züchter, heutiger Besitzer oder Hundeführer die eigene Person ist, sonst 404.\n",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Auswahl",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "titles",
                                                "results",
                                                "held",
                                                "locked"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/me/dogs/{dog}/report-options": {
            "get": {
                "summary": "Auswahl für Meldungen zu einem eigenen Hund",
                "description": "Für Befund, Gentest, Berichtigung und Ergebnis (E220): zuständige Stelle (`authority`, sonst `clubs` zur Wahl),\nUntersuchungen und Gentests mit erlaubten Ergebnissen (`scale`), Labore, änderbare Stammdaten (`fields`) und\nVeranstaltungen, an denen der Hund gemeldet war, mit ihren Ergebnisarten. Nur für Hunde, deren Züchter oder\nheutiger Besitzer die eigene Person ist, oder Welpen eines eigenen Wurfs, sonst 404.\n",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Auswahl",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "authority",
                                                "clubs",
                                                "health_test_types",
                                                "genetic_test_types",
                                                "laboratories",
                                                "fields",
                                                "events"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/me/breed-clubs": {
            "get": {
                "summary": "Vereine einer Rasse",
                "description": "Rassezuchtvereine, die die Rasse heute betreuen (E41) – Auswahl der Stelle für einen Hund ohne Akte (`DOG_CREATE`, E220).",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "breed",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Vereine",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "in_canidex"
                                                ],
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "in_canidex": {
                                                        "type": "boolean"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/event-search": {
            "get": {
                "summary": "Veranstaltungen suchen (Ergebnis nachmelden)",
                "description": "Vergangene Veranstaltungen der letzten fünf Jahre nach Name oder Veranstalter, neueste zuerst, mit ihren Ergebnisarten – auch solche, bei denen der Hund nicht gemeldet war (E224).",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 3,
                            "maxLength": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Treffer",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "starts_at",
                                                    "organizer",
                                                    "type",
                                                    "result_types"
                                                ]
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/result-options": {
            "get": {
                "summary": "Veranstaltungs- und Ergebnisarten",
                "description": "Für ein Ergebnis einer Prüfung außerhalb von CANIDEX (E224, `EVENT_RESULT` mit `event_new`) – Veranstaltungsarten und mit `type` die allgemeinen Ergebnisarten dieser Art mit Skala.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Auswahl",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "event_types",
                                                "result_types"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/fees": {
            "get": {
                "summary": "Eigene Beiträge und Gebühren",
                "description": "Sollstellungen der eigenen Person bei allen Vereinen – Mitgliedsbeiträge (E88) und Gebühren für Zuchtleistungen (E225, `kind` SERVICE) – mit Zahlungen und Mahnstufe; je Verein Empfänger, eigenes SEPA-Mandat (IBAN maskiert) und Gebührenordnung. Vereine sind die der Sollstellungen, der eigenen Zwinger und der Mitgliedschaften.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Beiträge und Gebühren",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "charges",
                                                "organizations"
                                            ],
                                            "properties": {
                                                "charges": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "id",
                                                            "organization",
                                                            "kind",
                                                            "service",
                                                            "label",
                                                            "purpose",
                                                            "reference",
                                                            "amount_cents",
                                                            "paid_cents",
                                                            "open_cents",
                                                            "due_on",
                                                            "overdue",
                                                            "dunning_level",
                                                            "payments"
                                                        ]
                                                    }
                                                },
                                                "organizations": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "id",
                                                            "name",
                                                            "creditor_name",
                                                            "creditor_iban",
                                                            "mandate",
                                                            "schedule"
                                                        ]
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            }
        },
        "/me/stud-confirmations": {
            "get": {
                "summary": "Offene Bestätigungen für die eigenen Rüden",
                "description": "Deckungen, die Züchter mit einem Rüden gemeldet haben, dessen Hauptbesitzer die eigene Person ist, und die auf die Bestätigung warten (E223).",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Offene Bestätigungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "id",
                                                    "sire",
                                                    "dam",
                                                    "kennel",
                                                    "first_mated_on",
                                                    "last_mated_on",
                                                    "requested_by",
                                                    "requested_at"
                                                ]
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/me/stud-confirmations/{confirmation}/confirm": {
            "post": {
                "summary": "Deckung bestätigen",
                "description": "Der Rüdenbesitzer bestätigt die Deckung; die Deckmeldung geht im Namen des Züchters an den Verein (E223). Nur der Besitzer, sonst 403; schon entschieden 422.",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "confirmation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Deckmeldung eingereicht",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "proposal"
                                            ],
                                            "properties": {
                                                "proposal": {
                                                    "$ref": "#/components/schemas/PublicId"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/stud-confirmations/{confirmation}/decline": {
            "post": {
                "summary": "Deckung ablehnen",
                "description": "Der Rüdenbesitzer lehnt mit Begründung ab; keine Deckmeldung, der Züchter wird benachrichtigt (E223).",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "confirmation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "reason"
                                ],
                                "properties": {
                                    "reason": {
                                        "type": "string",
                                        "maxLength": 2000
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "204": {
                        "description": "Abgelehnt"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/matings/{mating}/report": {
            "post": {
                "summary": "Deckmeldung mit dem Rüdenbesitzer",
                "description": "Deckmeldung eines eigenen Zwingers (E223). Ist der heutige Hauptbesitzer des Rüden die eigene Person oder unbekannt,\ngeht sie sofort an den Verein (`SUBMITTED`). Hat er ein Konto in CANIDEX, wartet sie auf seine Bestätigung\n(`AWAITING_STUD_OWNER`, er wird benachrichtigt). Ohne Konto ist der unterschriebene Deckschein Pflicht\n(`mating_certificate`, PDF/JPG/PNG bis 10 MB) – er liegt dann bei der Hündin und im Vorschlag.\n",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "mating",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "first_mated_on"
                                ],
                                "properties": {
                                    "first_mated_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "last_mated_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "mating_certificate": {
                                        "type": "string",
                                        "format": "binary"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Gemeldet",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "status",
                                                "proposal",
                                                "stud_owner"
                                            ],
                                            "properties": {
                                                "status": {
                                                    "type": "string",
                                                    "enum": [
                                                        "SUBMITTED",
                                                        "AWAITING_STUD_OWNER"
                                                    ]
                                                },
                                                "proposal": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "stud_owner": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/dogs/{dog}/stud-offer": {
            "put": {
                "summary": "Angebot in der Rüdengalerie",
                "description": "Der heutige Hauptbesitzer eines Rüden nimmt ihn aus der Galerie (`available` false – deckt derzeit nicht) oder hinterlegt einen Hinweis, z. B. Decktaxe oder Bedingungen (E223). Sonst 403.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "available"
                                ],
                                "properties": {
                                    "available": {
                                        "type": "boolean"
                                    },
                                    "note": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 1000
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Gespeichert",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "available",
                                                "note"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/dogs/{dog}/health-due": {
            "get": {
                "summary": "Verlangte Befunde mit Ablauf nach den Zuchtregeln",
                "description": "Für einen eigenen Hund: Befundarten, die die gültigen Regelwerke zur Zuchtzulassung (alle Ebenen, E42) beim Verein des\nZuchtbuchs verlangen, mit dem jüngsten bestätigten Befund, Gültigkeit (kürzeste `max_age_months` der Regeln) und Stand\n`OK`, `DUE_SOON` (≤ 90 Tage), `EXPIRED`, `MISSING` (E302) – für Erinnerungen in CANIDEX Breeder.\n",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Befunde",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "club",
                                                "items"
                                            ],
                                            "properties": {
                                                "club": {
                                                    "$ref": "#/components/schemas/NullablePublicId"
                                                },
                                                "items": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "test",
                                                            "name",
                                                            "max_age_months",
                                                            "last",
                                                            "result",
                                                            "valid_until",
                                                            "status"
                                                        ],
                                                        "properties": {
                                                            "test": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "max_age_months": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ]
                                                            },
                                                            "last": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "format": "date"
                                                            },
                                                            "result": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "valid_until": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "format": "date"
                                                            },
                                                            "status": {
                                                                "type": "string",
                                                                "enum": [
                                                                    "OK",
                                                                    "DUE_SOON",
                                                                    "EXPIRED",
                                                                    "MISSING"
                                                                ]
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/me/dogs/{dog}/title-progress": {
            "get": {
                "summary": "Fortschritt zu Titeln eines eigenen oder geteilten Hundes",
                "description": "Wie `GET /dogs/{dog}/title-progress` (E303, T177) für eigene Hunde (Züchter, Besitzer, Hundeführer) und mit mir geteilte Hunde. Nur mit Benutzer-Token.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "all",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Fortschritt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/TitleProgress"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/me/dogs/{dog}/vaccinations": {
            "get": {
                "summary": "Tollwutimpfungen eines Hundes",
                "description": "Für den heutigen Besitzer und Konten, mit denen er den Hund geteilt hat (E303, T180); sonst 404. Privat – nie in Hundeakte oder Suche.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Impfungen",
                        "neueste": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/DogVaccination"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Tollwutimpfung eintragen",
                "description": "Besitzer und Konten mit Freigabe ENTER (sonst 403); Foto/PDF des Impfpasses optional (JPEG, PNG, WebP, PDF bis 10 MB).",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "vaccinated_on",
                                    "valid_until"
                                ],
                                "properties": {
                                    "vaccinated_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "valid_until": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "vaccine": {
                                        "type": "string",
                                        "maxLength": 255
                                    },
                                    "batch": {
                                        "type": "string",
                                        "maxLength": 100
                                    },
                                    "veterinarian": {
                                        "type": "string",
                                        "maxLength": 255
                                    },
                                    "proof": {
                                        "type": "string",
                                        "format": "binary"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Eingetragen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/DogVaccination"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/dogs/{dog}/vaccinations/{vaccination}": {
            "delete": {
                "summary": "Tollwutimpfung löschen",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "vaccination",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Gelöscht"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/me/dogs/{dog}/vaccinations/{vaccination}/proof": {
            "get": {
                "summary": "Nachweis einer Tollwutimpfung",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "vaccination",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Datei",
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/me/dogs/{dog}/documents": {
            "get": {
                "summary": "Eigene Unterlagen eines Hundes",
                "description": "Private Unterlagen des Besitzers (E304, T160), z. B. Ahnentafel-Scan oder Tierarztbericht – für den heutigen Besitzer\nund Konten, mit denen er den Hund teilt (E303); sonst 404. Nicht in der Hundeakte, auch nicht für den Plattformbetrieb,\nbis sie einem Antrag beiliegen (`attached`).\n",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Unterlagen",
                        "neueste": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/OwnerDocument"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Eigene Unterlage hochladen",
                "description": "Besitzer und Konten mit Freigabe ENTER (sonst 403); PDF, JPEG, PNG, WebP bis 20 MB, höchstens 100 je Hund. Fotos über `POST /dogs/{dog}/photos`.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "file",
                                    "type"
                                ],
                                "properties": {
                                    "file": {
                                        "type": "string",
                                        "format": "binary"
                                    },
                                    "type": {
                                        "type": "string",
                                        "enum": [
                                            "PEDIGREE",
                                            "HEALTH_REPORT",
                                            "XRAY",
                                            "DNA_REPORT",
                                            "TITLE_CERTIFICATE",
                                            "TRIAL_REPORT",
                                            "OTHER"
                                        ]
                                    },
                                    "title": {
                                        "type": "string",
                                        "maxLength": 255
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Abgelegt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/OwnerDocument"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/dogs/{dog}/documents/{document}": {
            "delete": {
                "summary": "Eigene Unterlage löschen",
                "description": "Nur solange sie keinem Antrag oder Eintrag beiliegt (sonst 422).",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "document",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Gelöscht"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/dogs/{dog}/delegations": {
            "get": {
                "summary": "Freigaben eines eigenen Hundes",
                "description": "Konten, mit denen der heutige Besitzer den Hund teilt (E303, T181); für andere 404.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Freigaben",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/DogDelegation"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Hund mit einem Konto teilen",
                "description": "Konto per E-Mail-Adresse oder CX-ID (CXU); READ = Hund, Meldungen und Impfung sehen, ENTER = zusätzlich im Namen\ndes Besitzers melden und die Impfung pflegen. Eine bestehende Freigabe wird geändert. Unbekanntes Konto: 422.\n",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "account",
                                    "permission"
                                ],
                                "properties": {
                                    "account": {
                                        "type": "string",
                                        "maxLength": 255
                                    },
                                    "permission": {
                                        "type": "string",
                                        "enum": [
                                            "READ",
                                            "ENTER"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Geteilt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/DogDelegation"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/dogs/{dog}/delegations/{delegation}": {
            "delete": {
                "summary": "Freigabe widerrufen",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "delegation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Widerrufen"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/me/delegated-dogs": {
            "get": {
                "summary": "Mit mir geteilte Hunde",
                "description": "Hunde, die ihr heutiger Besitzer mit dem eigenen Konto teilt (E303, T181) – z. B. für Meldungen im Namen des Besitzers in CANIDEX Events.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Hunde",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "id",
                                                    "permission",
                                                    "since",
                                                    "dog"
                                                ],
                                                "properties": {
                                                    "id": {
                                                        "type": "integer"
                                                    },
                                                    "permission": {
                                                        "type": "string",
                                                        "enum": [
                                                            "READ",
                                                            "ENTER"
                                                        ]
                                                    },
                                                    "since": {
                                                        "$ref": "#/components/schemas/DateTime"
                                                    },
                                                    "dog": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "breed": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "sex": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/organizations/{organization}/contract-templates": {
            "get": {
                "summary": "Musterverträge eines Vereins",
                "description": "Aktive Vorlagen des Vereins (z. B. Welpenkaufvertrag) für den Kaufvertrag in CANIDEX Breeder (E302).",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Vorlagen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "id",
                                                    "title",
                                                    "file_name",
                                                    "mime_type",
                                                    "size_bytes",
                                                    "download"
                                                ],
                                                "properties": {
                                                    "id": {
                                                        "type": "integer"
                                                    },
                                                    "title": {
                                                        "type": "string"
                                                    },
                                                    "file_name": {
                                                        "type": "string"
                                                    },
                                                    "mime_type": {
                                                        "type": "string"
                                                    },
                                                    "size_bytes": {
                                                        "type": "integer"
                                                    },
                                                    "download": {
                                                        "type": "string",
                                                        "format": "uri"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/contract-templates/{template}": {
            "get": {
                "summary": "Mustervertrag herunterladen",
                "description": "Datei einer aktiven Vorlage (E302).",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "template",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Datei",
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/me/litter-listings": {
            "get": {
                "summary": "Eigene Einträge in der Wurfliste",
                "description": "Einträge der öffentlichen Wurfliste zu Verpaarungen der eigenen Zwinger (E291) mit Stand (`SUBMITTED` wartet auf den Verein, `PUBLISHED`, `HIDDEN` vom Verein ausgeblendet mit Begründung, `WITHDRAWN`), Welpen mit „vergeben“ und Link zur öffentlichen Liste des Vereins.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Einträge",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/LitterListing"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/me/matings/{mating}/listing": {
            "put": {
                "summary": "Verpaarung bzw. Wurf in der Wurfliste freigeben",
                "description": "Der heutige Inhaber des Zwingers gibt eine genehmigte Verpaarung (bzw. den Wurf daraus) für die öffentliche Wurfliste\ndes Vereins frei (`published` true) oder zieht sie zurück (false); dazu Text, erwarteter Wurftermin und vergebene\nWelpen als CX-IDs (E291). Neue Einträge erscheinen erst nach Bestätigung durch den Verein. Andere Personen 422.\n",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "mating",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXM-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "published"
                                ],
                                "properties": {
                                    "published": {
                                        "type": "boolean"
                                    },
                                    "note": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 3000
                                    },
                                    "expected_on": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "taken": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "maxItems": 30
                                    },
                                    "inquiry_url": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 255,
                                        "description": "Fragebogen des Züchters (https); die öffentliche Wurfliste verlinkt dann dorthin statt auf das Anfrageformular (E302)"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Gespeichert (`data` null, wenn es nichts zurückzuziehen gab)",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "oneOf": [
                                                {
                                                    "type": "null"
                                                },
                                                {
                                                    "$ref": "#/components/schemas/LitterListing"
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/litters/{litter}": {
            "get": {
                "summary": "Eigener Wurf für das Welpentagebuch",
                "description": "Wurf eines Zwingers, dessen heutiger Inhaber die eigene Person ist (sonst 404): Welpen in Geburtsreihenfolge mit\nMarkierung (E64) und Geburtsangaben (E70), änderbar bis zur Abnahme (`births_editable`), Namen bis zu den Papieren\n(`names_editable`, E73), angekündigte Abnahme (E75), Chip- und Zuchtbuchnummern der Welpen und ob der Züchter die\nAbnahme selbst einträgt (E218), `locked` ohne Abo „Welpentagebuch“. Gewichte, Notizen und Vormerkungen führt das\nFachprodukt selbst (E209).\n",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "litter",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXW-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Wurf",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "id",
                                                "letter",
                                                "kennel",
                                                "status",
                                                "whelped_on",
                                                "births_editable",
                                                "names_editable",
                                                "papers_issued_on",
                                                "authority",
                                                "inspection",
                                                "puppies",
                                                "locked"
                                            ],
                                            "properties": {
                                                "authority": {
                                                    "oneOf": [
                                                        {
                                                            "type": "null"
                                                        },
                                                        {
                                                            "type": "object",
                                                            "required": [
                                                                "id",
                                                                "name",
                                                                "in_canidex"
                                                            ],
                                                            "properties": {
                                                                "id": {
                                                                    "$ref": "#/components/schemas/PublicId"
                                                                },
                                                                "name": {
                                                                    "type": "string"
                                                                },
                                                                "in_canidex": {
                                                                    "type": "boolean"
                                                                }
                                                            }
                                                        }
                                                    ]
                                                },
                                                "inspection": {
                                                    "type": "object",
                                                    "required": [
                                                        "inspected_on",
                                                        "inspector_name",
                                                        "self_entered",
                                                        "can_enter"
                                                    ],
                                                    "properties": {
                                                        "inspected_on": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ],
                                                            "format": "date"
                                                        },
                                                        "inspector_name": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "self_entered": {
                                                            "type": "boolean",
                                                            "description": "Abnahme vom Züchter eingetragen (E218)"
                                                        },
                                                        "can_enter": {
                                                            "type": "boolean",
                                                            "description": "Verein ohne CANIDEX und noch nicht abgenommen – Abnahme selbst eintragen"
                                                        }
                                                    }
                                                },
                                                "puppies": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "id",
                                                            "name",
                                                            "full_name",
                                                            "sex",
                                                            "color",
                                                            "marking_note",
                                                            "birth_type",
                                                            "born_at",
                                                            "birth_order",
                                                            "microchip",
                                                            "microchip_confirmed",
                                                            "registration_number",
                                                            "registration_confirmed",
                                                            "registration_editable"
                                                        ],
                                                        "properties": {
                                                            "microchip": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "microchip_confirmed": {
                                                                "type": "boolean"
                                                            },
                                                            "registration_number": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "registration_confirmed": {
                                                                "type": "boolean"
                                                            },
                                                            "registration_editable": {
                                                                "type": "boolean",
                                                                "description": "Verein ohne CANIDEX und Eintrag nicht bestätigt (E218)"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/me/litters/{litter}/puppies/{puppy}/marking": {
            "put": {
                "summary": "Markierung eines Welpen",
                "description": "Markierungsfarbe und Hinweis (E64); Abo „Welpentagebuch“, sonst 422.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "litter",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXW-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "puppy",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXD-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "color": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "note": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 100
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "204": {
                        "description": "Gespeichert"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/litters/{litter}/puppies/{puppy}/name": {
            "put": {
                "summary": "Name eines Welpen",
                "description": "Bis zur Ausstellung der Papiere (E73), danach 422; der vollständige Name mit Zwingernamen bildet sich neu.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "litter",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXW-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "puppy",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXD-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "maxLength": 255
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "204": {
                        "description": "Gespeichert"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/litters/{litter}/puppies/{puppy}/birth": {
            "put": {
                "summary": "Geburtsangaben eines Welpen",
                "description": "Geburtsart, -zeit und Reihenfolge bis zur Wurfabnahme (E70), danach 422; ohne Abo.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "litter",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXW-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "puppy",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXD-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "birth_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "enum": [
                                            "NATURAL",
                                            "ASSISTED",
                                            "CESAREAN",
                                            null
                                        ]
                                    },
                                    "born_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "example": "2026-03-18T06:15"
                                    },
                                    "birth_order": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "minimum": 1,
                                        "maximum": 30
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "204": {
                        "description": "Gespeichert"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/quick-search/{type}": {
            "get": {
                "summary": "Schnellsuche für CX-ID-Felder",
                "description": "Vorschläge wie in den Bereichen (E83): Hunde (Name, Kennung, CX-ID), Personen (nur im Arbeitskontext `context` bzw. per vollständiger ID), Zwinger, Organisationen; Filter `sex`, `breeds=covered`, `own=1`, `role`, `types`. Nur mit Benutzer-Token.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "type",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "dog",
                                "person",
                                "kennel",
                                "organization"
                            ]
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "context",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "sex",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "MALE",
                                "FEMALE"
                            ]
                        }
                    },
                    {
                        "name": "breeds",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "covered"
                            ]
                        }
                    },
                    {
                        "name": "own",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "1"
                            ]
                        }
                    },
                    {
                        "name": "role",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "warden",
                                "member",
                                "club-member"
                            ]
                        }
                    },
                    {
                        "name": "types",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Vorschläge",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "id",
                                                    "label",
                                                    "hint"
                                                ],
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "label": {
                                                        "type": "string"
                                                    },
                                                    "hint": {
                                                        "type": "string"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/me/dog-notes/{dog}": {
            "get": {
                "summary": "Eigene Notiz zum Hund",
                "description": "Private Notiz des Kontos (E145), `text` null ohne Notiz.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Notiz",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": [
                                                "object",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "put": {
                "summary": "Eigene Notiz speichern",
                "description": "Leerer Text löscht die Notiz (E145).",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "text": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 2000
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "204": {
                        "description": "Gespeichert"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/dog-lists": {
            "get": {
                "summary": "Eigene Hundelisten",
                "description": "Hundelisten des Kontos mit Zahl der Hunde (E134); mit `dog` zusätzlich `containing` = Listen, in denen der Hund steht.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "dog",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Hundelisten",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": [
                                                "object",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            },
            "post": {
                "summary": "Hundeliste anlegen",
                "description": "Neue Hundeliste (höchstens 50 je Konto).",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "maxLength": 100
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Angelegt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "id",
                                                "name"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/dog-lists/dogs/{dog}": {
            "put": {
                "summary": "Hundelisten eines Hundes setzen",
                "description": "`lists` = alle eigenen Listen, in denen der Hund stehen soll; aus den übrigen wird er entfernt.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "lists"
                                ],
                                "properties": {
                                    "lists": {
                                        "type": "array",
                                        "items": {
                                            "type": "integer"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Listen des Hundes",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": [
                                                "object",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/dog-lists/{list}": {
            "put": {
                "summary": "Hundeliste umbenennen",
                "description": "Nur eigene Listen.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "list",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "maxLength": 100
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "204": {
                        "description": "Gespeichert"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "delete": {
                "summary": "Hundeliste löschen",
                "description": "Nur eigene Listen.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "list",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Gelöscht"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/saved-searches/{scope}": {
            "get": {
                "summary": "Letzte Abfrage einer Suchseite",
                "description": "Formularwerte der letzten Suche je Konto und Suchseite (E134), `filters` null ohne gespeicherte Suche.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "scope",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[a-z0-9.-]{1,40}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Letzte Abfrage",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": [
                                                "object",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            },
            "put": {
                "summary": "Letzte Abfrage speichern",
                "description": "Formularwerte der Suche; leer wird nicht gespeichert.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "scope",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[a-z0-9.-]{1,40}$"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "filters"
                                ],
                                "properties": {
                                    "filters": {
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "204": {
                        "description": "Gespeichert"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/notifications": {
            "get": {
                "summary": "Benachrichtigungen (Glocke)",
                "description": "Zahl der ungelesenen und die neuesten Benachrichtigungen, ungelesene zuerst (E101); `all=1` alle innerhalb der Aufbewahrungsfrist.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "all",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Benachrichtigungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": [
                                                "object",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/me/notifications/read-all": {
            "post": {
                "summary": "Alle als gelesen markieren",
                "description": "Markiert alle eigenen Benachrichtigungen als gelesen.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Markiert",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": [
                                                "object",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/me/notifications/{notification}/open": {
            "post": {
                "summary": "Benachrichtigung öffnen",
                "description": "Als gelesen markieren und das Ziel (`url`) liefern; nur eigene, sonst 404.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "notification",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ziel",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": [
                                                "object",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/me/locale": {
            "put": {
                "summary": "Sprache des Kontos",
                "description": "de, en, es, it oder fr (E80) – gilt auch für E-Mails und die Bereiche.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "locale"
                                ],
                                "properties": {
                                    "locale": {
                                        "type": "string",
                                        "enum": [
                                            "de",
                                            "en",
                                            "es",
                                            "it",
                                            "fr"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "204": {
                        "description": "Gespeichert"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/theme": {
            "put": {
                "summary": "Farbschema des Kontos",
                "description": "light, dark oder null = Systemeinstellung (Dunkelmodus, E255) – gilt in den Bereichen und in Fachprodukten wie CANIDEX Events.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "theme"
                                ],
                                "properties": {
                                    "theme": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "enum": [
                                            "light",
                                            "dark",
                                            null
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "204": {
                        "description": "Gespeichert"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/club-requests": {
            "get": {
                "summary": "Eigene Anfragen für CANIDEX Kennel Club",
                "description": "Die letzten 20 Anfragen des Kontos aus dem Assistenten von CANIDEX Kennel Club mit Bearbeitungsstand (E338).",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Anfragen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/ClubRequest"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            },
            "post": {
                "summary": "Kennel Club für einen Verein anfragen",
                "description": "Anfrage aus dem Assistenten von CANIDEX Kennel Club (E338), JSON oder multipart mit bis zu 5 Dateien `files[]` (PDF, Bilder, Word, Excel, ODT, CSV bis 10 MB).\nVerein entweder als `organization` (CANIDEX-ID aus `GET /me/club-requests/clubs`) oder neu erfasst als `club`. Rassen als CANIDEX-IDs, sonst `breed_other`.\nRollen: BOARD, BREEDING, OFFICE, MEMBER, BREEDER, OTHER. Vor- und Nachname sowie E-Mail-Adresse (`contact`) sind Pflicht. Höchstens 3 offene Anfragen je Konto. Der Plattformbetrieb wird benachrichtigt.\n",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ClubRequestInput"
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/ClubRequestInput"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Eingegangen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ClubRequest"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/club-requests/clubs": {
            "get": {
                "summary": "Vereine zur Auswahl im Kennel-Club-Assistenten",
                "description": "Aktive Rassezuchtvereine und Verbände (BREED_CLUB, KENNEL_CLUB), mit `breed` nur die, die die Rasse heute betreuen. `state` ACTIVE = arbeitet schon mit CANIDEX, KNOWN = in CANIDEX bekannt, arbeitet aber noch nicht damit (E338).",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "breed",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "CANIDEX-ID der Rasse"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Vereine",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "short_name",
                                                    "country",
                                                    "state"
                                                ],
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "short_name": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "country": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "state": {
                                                        "type": "string",
                                                        "enum": [
                                                            "ACTIVE",
                                                            "KNOWN"
                                                        ]
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}/photos": {
            "get": {
                "summary": "Fotos der Hundeakte (Galerie)",
                "description": "Sichtbare Fotos mit Größen und die Rechte des Aufrufers: hochladen (Besitzer, Aufsicht), Aufsicht, eigenes Foto löschen (E149, E156).",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Galerie",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": [
                                                "object",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Foto hochladen",
                "description": "Multipart mit `photo` (JPEG, PNG, WebP bis 10 MB), `title` und `rights` (Rechte am Bild bestätigt); höchstens 20 Fotos, das erste wird Hauptfoto.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "photo",
                                    "rights"
                                ],
                                "properties": {
                                    "photo": {
                                        "type": "string",
                                        "format": "binary"
                                    },
                                    "title": {
                                        "type": "string",
                                        "maxLength": 120
                                    },
                                    "rights": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Hochgeladen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "id"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}/photos/{photo}": {
            "delete": {
                "summary": "Foto löschen",
                "description": "Aufsicht oder wer das Foto hochgeladen hat.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "photo",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Gelöscht"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}/photos/{photo}/main": {
            "post": {
                "summary": "Hauptfoto setzen",
                "description": "Besitzer und Aufsicht.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "photo",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Gespeichert"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}/photos/{photo}/hide": {
            "post": {
                "summary": "Foto ausblenden",
                "description": "Aufsicht; `hidden=false` blendet wieder ein.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "photo",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Gespeichert"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}/papers": {
            "get": {
                "summary": "Unterlagen des Hundes",
                "description": "Abschnitt „Unterlagen“ (E151): Aussteller, Freigabe und Unterlagen – für Mitarbeitende des Ausstellers, nach Freigabe auch für Züchter und Besitzer (E159); sonst `data` null.",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Unterlagen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": [
                                                "object",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/papers/release": {
            "post": {
                "summary": "Vereinsunterlagen freigeben",
                "description": "Nur der Verein des Zuchtbuchs mit APPROVE REGISTRATIONS (E151, E326); die Unterlagen werden im Core erzeugt und abgelegt. Ohne Logo des Vereins 422.",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Vereinsunterlagen freigeben",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "status"
                                            ],
                                            "properties": {
                                                "status": {
                                                    "type": "string",
                                                    "enum": [
                                                        "RELEASED"
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}/papers/revoke": {
            "post": {
                "summary": "Freigabe der Unterlagen zurücknehmen",
                "description": "Nur der Verein des Zuchtbuchs (E151, E326).",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Freigabe der Unterlagen zurücknehmen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "status"
                                            ],
                                            "properties": {
                                                "status": {
                                                    "type": "string",
                                                    "enum": [
                                                        "REVOKED"
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}/papers/reissue": {
            "post": {
                "summary": "Unterlagen neu ausstellen",
                "description": "Mit Begründung, nur der Verein des Zuchtbuchs (E153, E326); die alten Unterlagen gelten als ersetzt.",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "reason"
                                ],
                                "properties": {
                                    "reason": {
                                        "type": "string",
                                        "maxLength": 2000
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "Unterlagen neu ausstellen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "status"
                                            ],
                                            "properties": {
                                                "status": {
                                                    "type": "string",
                                                    "enum": [
                                                        "REISSUING"
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}/death-cause": {
            "get": {
                "summary": "Todesursache eines Hundes",
                "description": "Katalog und aktuelle Angabe (E300) für Besitzer, Züchter und den Verein des Zuchtbuchs (E326); Scope `club:read` oder `breeder:read`.",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    },
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Todesursache",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "died_on",
                                                "causes",
                                                "current"
                                            ],
                                            "properties": {
                                                "died_on": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "format": "date"
                                                },
                                                "causes": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "id",
                                                            "name"
                                                        ],
                                                        "properties": {
                                                            "id": {
                                                                "type": "integer"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                },
                                                "current": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "cause": {
                                                            "type": "integer"
                                                        },
                                                        "note": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "put": {
                "summary": "Todesursache angeben",
                "description": "Besitzer und Züchter ungeprüft, der Verein des Zuchtbuchs geprüft (E300); Scope `club:write` oder `breeder:write`.",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    },
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "cause"
                                ],
                                "properties": {
                                    "cause": {
                                        "type": "integer"
                                    },
                                    "note": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 1000
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Gespeichert",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "cause",
                                                "note"
                                            ],
                                            "properties": {
                                                "cause": {
                                                    "type": "integer"
                                                },
                                                "note": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}/genomic-profile": {
            "get": {
                "summary": "Genomisches Profil eines Hundes",
                "description": "Genomischer Inzuchtkoeffizient F_ROH aus SNP-Rohdaten (E296) für Besitzer und den Verein des Zuchtbuchs; `can_upload` sagt, ob der Aufrufer Rohdaten hochladen darf.",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    },
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Profil",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "can_upload",
                                                "providers",
                                                "profile"
                                            ],
                                            "properties": {
                                                "can_upload": {
                                                    "type": "boolean"
                                                },
                                                "providers": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                        "type": "string"
                                                    }
                                                },
                                                "profile": {
                                                    "oneOf": [
                                                        {
                                                            "type": "null"
                                                        },
                                                        {
                                                            "$ref": "#/components/schemas/GenomicProfile"
                                                        }
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "SNP-Rohdaten hochladen",
                "description": "Rohdaten von Embark, Wisdom Panel oder einem anderen Anbieter (bis 30 MB, E296); ausgewertet im Core.",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    },
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "file",
                                    "provider"
                                ],
                                "properties": {
                                    "file": {
                                        "type": "string",
                                        "format": "binary"
                                    },
                                    "provider": {
                                        "type": "string",
                                        "enum": [
                                            "EMBARK",
                                            "WISDOM",
                                            "OTHER"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Ausgewertet",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/GenomicProfile"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/dogs/{dog}/papers/{paper}": {
            "get": {
                "summary": "Unterlage als PDF",
                "description": "Ausgestellte Unterlage (CXA) – nur wer sie sehen darf, sonst 404.",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "paper",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "PDF",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/{dog}/pedigree-tree": {
            "get": {
                "summary": "Stammbaum als Klammerbaum",
                "description": "3–5 Generationen mit Ahnenverlust (E148); `from` = Ahne als Ausgangspunkt zum Weiterblättern.",
                "security": [
                    {
                        "oauth2": [
                            "dogs:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/DogId"
                    },
                    {
                        "name": "generations",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 3,
                            "maximum": 5
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Stammbaum",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": [
                                                "object",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/me/proposals": {
            "get": {
                "summary": "Eigene Vorschläge",
                "description": "Vom eigenen Konto eingereichte Vorschläge (E71, E214), neueste zuerst und seitenweise; mit `open=1` nur eingereichte und in Prüfung, älteste zuerst. Mit Namen der zuständigen Stelle und Kurzbeschreibung. Nur mit Benutzer-Token.",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "open",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Vorschläge",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data",
                                        "meta"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/Proposal"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "authority_name",
                                                            "summary"
                                                        ],
                                                        "properties": {
                                                            "authority_name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "summary": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                ]
                                            }
                                        },
                                        "meta": {
                                            "$ref": "#/components/schemas/PageMeta"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            },
            "post": {
                "summary": "Eigenen Vorschlag einreichen (ohne Rollenrecht)",
                "description": "Für Konten mit verknüpfter Person ohne Rollenrecht PROPOSE (E214), z. B. Züchter in CANIDEX Breeder. Nur mit einem\nBenutzer-Token. Zulässig sind genau die Arten des Züchterbereichs; Nutzdaten wie bei `POST /proposals`:\n\n- `KENNEL_APPLICATION` – ohne Einschränkung\n- `KENNEL_OWNER_CHANGE`, `MATING_REQUEST` – nur für Zwinger, deren heutiger Inhaber die Person ist\n- `MATING_REPORT`, `LITTER_REPORT` – nur für Verpaarungen eines solchen Zwingers\n- `LITTER_INSPECTION_REQUEST` – nur für Würfe eines solchen Zwingers\n- `TITLE` – nur für Hunde, deren Züchter, heutiger Besitzer oder Hundeführer die Person ist; Abo „Titel beantragen“\n- `OWNER_CHANGE` – nur für Welpen aus einem Wurf eines solchen Zwingers; `authority` setzt CANIDEX (Stelle des Wurfs); Abo „Welpentagebuch“\n- `HEALTH_TEST`, `GENETIC_TEST`, `DOG_EDIT` (E220) – nur für Hunde, deren Züchter oder heutiger Besitzer die Person ist,\n  oder Welpen eines eigenen Wurfs; `authority` setzt CANIDEX: die Stelle des gültigen Zuchtbuchs, sonst des Wurfs, sonst\n  der gewählte `club` (ein Verein, der die Rasse betreut – `GET /me/dogs/{dog}/report-options`)\n- `EVENT_RESULT` (E220) – eigene Hunde wie bei `TITLE`, ohne Abo; zuständig ist der Veranstalter\n- `DOG_CREATE` (E220) – Hund ohne Akte, z. B. ein Deckrüde aus dem Ausland oder ein zugekaufter Hund; `club` ein Verein der\n  Rasse (`GET /me/breed-clubs`), mit `mine` wird die Person Besitzer\n\nNachweise als Datei (`evidence_files[]`, multipart, PDF/JPG/PNG bis 10 MB, höchstens 5) bei `HEALTH_TEST`, `GENETIC_TEST`\n(Befund, in `result_details.documents`) und `DOG_EDIT` (in `evidence`) – abgelegt in der Hundeakte.\n\nBezieht sich der Vorschlag nicht auf Eigenes, kommt 422.\n",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "type",
                                    "payload"
                                ],
                                "properties": {
                                    "type": {
                                        "type": "string",
                                        "enum": [
                                            "KENNEL_APPLICATION",
                                            "KENNEL_OWNER_CHANGE",
                                            "MATING_REQUEST",
                                            "MATING_REPORT",
                                            "LITTER_REPORT",
                                            "LITTER_INSPECTION_REQUEST",
                                            "TITLE",
                                            "OWNER_CHANGE",
                                            "HEALTH_TEST",
                                            "GENETIC_TEST",
                                            "DOG_EDIT",
                                            "EVENT_RESULT",
                                            "DOG_CREATE"
                                        ]
                                    },
                                    "payload": {
                                        "type": "object"
                                    }
                                }
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "type",
                                    "payload"
                                ],
                                "properties": {
                                    "type": {
                                        "type": "string"
                                    },
                                    "payload": {
                                        "type": "object"
                                    },
                                    "evidence_files": {
                                        "type": "array",
                                        "maxItems": 5,
                                        "items": {
                                            "type": "string",
                                            "format": "binary"
                                        }
                                    },
                                    "evidence_documents": {
                                        "type": "array",
                                        "maxItems": 10,
                                        "items": {
                                            "type": "string"
                                        },
                                        "description": "eigene Unterlagen des Hundes als Nachweis (E304, CX-IDs aus GET /me/dogs/{dog}/documents); erst dann sieht sie die Stelle"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Eingereicht",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProposalEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/people/{person}": {
            "get": {
                "summary": "Personenprofil (gefiltert)",
                "description": "Nur, soweit der Aufrufer die Person sehen darf; sonst 404. Private Angaben (Geburtsdatum, private Adressen und\nKontakte) sieht nur die Person selbst; der Zugriff wird im Audit Log protokolliert.\n",
                "security": [
                    {
                        "oauth2": [
                            "people:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "person",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXP-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Personenprofil",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonProfile"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/breeds": {
            "get": {
                "summary": "Rassen und Hierarchie-Knoten",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "kind",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "ROOT",
                                "GROUP",
                                "SECTION",
                                "BREED"
                            ]
                        }
                    },
                    {
                        "name": "parent",
                        "in": "query",
                        "description": "Öffentliche ID des übergeordneten Knotens",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Rassen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Breed"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/breeds/{breed}": {
            "get": {
                "summary": "Rasse mit Vorfahren, Unterknoten und Varietäten",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "breed",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXB-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Rasse",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/BreedDetail"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/countries": {
            "get": {
                "summary": "Länder",
                "description": "Alle Länder (ISO 3166) mit Namen in der Sprache der Anfrage, nach Namen sortiert.",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Länder",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "code",
                                                    "name"
                                                ],
                                                "properties": {
                                                    "code": {
                                                        "type": "string",
                                                        "pattern": "^[A-Z]{2}$"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/organizations": {
            "get": {
                "summary": "Organisationen",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "description": "Organisationsart, mehrere durch Komma getrennt",
                        "schema": {
                            "type": "string",
                            "example": "BREED_CLUB,KENNEL_CLUB"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 2
                        }
                    },
                    {
                        "name": "member_of",
                        "in": "query",
                        "description": "Nur laufende Mitglieder dieses Verbands (Kürzel wie JGHV oder CXO-…), mit `member_number` (E422)",
                        "schema": {
                            "type": "string",
                            "maxLength": 40,
                            "example": "JGHV"
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "description": "Name, Kurzname, früherer Name (Alias) oder – mit `member_of` – Anfang der Vereinsnummer",
                        "schema": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 200
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Organisationen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/OrganizationSummary"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "properties": {
                                                            "member_number": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "description": "Vereinsnummer beim Verband aus `member_of`, z. B. EDV-Nr. beim JGHV"
                                                            },
                                                            "aliases": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                },
                                                                "description": "Frühere bzw. abweichende Namen (z. B. Schreibweise der Verbandsliste) – nur mit `member_of`, für die Suche im Client"
                                                            }
                                                        }
                                                    }
                                                ]
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}": {
            "get": {
                "summary": "Organisation mit Mitgliedschaften, betreuten Rassen und öffentlichen Kontaktdaten",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXO-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Organisation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/OrganizationProfile"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/rights": {
            "get": {
                "summary": "Seitenrechte im Arbeitskontext",
                "description": "Für Fachprodukte (CANIDEX Kennel Club, E323): je Angabe `AKTION:BEREICH[:any]` (mehrere mit `|`, wie `right:` an\nden Webrouten, E98), ob das Konto sie in dieser Organisation hat und ob nur das Recht des Plattformbetriebs sie\nerlaubt (E158). Nur mit Benutzer-Token und Zugang zum Arbeitskontext, sonst 404.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "specs[]",
                        "in": "query",
                        "required": true,
                        "style": "form",
                        "explode": true,
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            },
                            "example": [
                                "READ:PEOPLE",
                                "WRITE:ORGANIZATION",
                                "APPROVE:REGISTRATIONS:any"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Rechte",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "organization",
                                                "via_platform",
                                                "rights"
                                            ],
                                            "properties": {
                                                "organization": {
                                                    "type": "object"
                                                },
                                                "via_platform": {
                                                    "type": "boolean"
                                                },
                                                "rights": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "spec",
                                                            "allowed",
                                                            "only_via_platform"
                                                        ],
                                                        "properties": {
                                                            "spec": {
                                                                "type": "string"
                                                            },
                                                            "allowed": {
                                                                "type": "boolean"
                                                            },
                                                            "only_via_platform": {
                                                                "type": "boolean"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/club/overview": {
            "get": {
                "summary": "Übersicht des Vereinsbereichs",
                "description": "Kennzahlen der Startseite: offene Vorschläge, Zwingeranträge, angemeldete Abnahmen, gemeldete Würfe, Ankündigungen der letzten 30 Tage, offene Selbstnachweise und – bei Einschränkung durch den Verband – die betreuten Rassen.\nSeitenrecht `access` im Arbeitskontext (CANIDEX Kennel Club, E326); ohne Zugang 404, ohne Recht 403.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Übersicht des Vereinsbereichs",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "proposals_open",
                                                "kennel_applications",
                                                "litter_inspections",
                                                "litters_reported",
                                                "announcements",
                                                "self_confirmations_open",
                                                "breeds"
                                            ],
                                            "properties": {
                                                "proposals_open": {
                                                    "type": "integer"
                                                },
                                                "kennel_applications": {
                                                    "type": "integer"
                                                },
                                                "litter_inspections": {
                                                    "type": "integer"
                                                },
                                                "litters_reported": {
                                                    "type": "integer"
                                                },
                                                "announcements": {
                                                    "type": "integer"
                                                },
                                                "self_confirmations_open": {
                                                    "type": "integer"
                                                },
                                                "breeds": {
                                                    "type": [
                                                        "array",
                                                        "null"
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/kennels": {
            "get": {
                "summary": "Zwinger der Stelle",
                "description": "Zwinger mit Schutzverfahren über die Stelle oder ihr zugeordnet (E122), Anträge beim Verein zuerst; Filter wie die Zwingersuche (E135).\nSeitenrecht `READ:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E326); ohne Zugang 404, ohne Recht 403.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "name",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "number",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "number_from",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "number_to",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "name_from",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "name_to",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "id",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "owner",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "protected",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Zwinger der Stelle",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ClubList"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/matings": {
            "get": {
                "summary": "Deckungen der Stelle",
                "description": "Genehmigte Deckungen, neueste zuerst.\nSeitenrecht `READ:REGISTRATIONS:any` im Arbeitskontext (CANIDEX Kennel Club, E326); ohne Zugang 404, ohne Recht 403.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Deckungen der Stelle",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ClubList"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/litters": {
            "get": {
                "summary": "Würfe der Stelle",
                "description": "Würfe, angemeldete Abnahmen zuerst; in einer Untergruppe die ihres Zuständigkeitsbereichs (Wohnort-Prinzip, E93).\nSeitenrecht `READ:REGISTRATIONS:any` im Arbeitskontext (CANIDEX Kennel Club, E326); ohne Zugang 404, ohne Recht 403.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Würfe der Stelle",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ClubList"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/registries": {
            "get": {
                "summary": "Zuchtbücher der Stelle",
                "description": "Zuchtbücher mit Führung, Nummernschema, nächster Nummer und Einträgen (je Zuchtbuch seitenweise über `zb_<Code>`), Untergruppen sehen das des Hauptvereins (E123, E93).\nSeitenrecht `READ:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E326); ohne Zugang 404, ohne Recht 403.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "description": "Zuchtbuchnummer oder Hundename",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Zuchtbücher der Stelle",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "code",
                                                    "name",
                                                    "keeping",
                                                    "registrations"
                                                ],
                                                "properties": {
                                                    "code": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "keeping": {
                                                        "type": "string"
                                                    },
                                                    "registrations": {
                                                        "$ref": "#/components/schemas/ClubList"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Zuchtbuch anlegen",
                "description": "E123.\nSeitenrecht `WRITE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "code",
                                    "name"
                                ],
                                "properties": {
                                    "code": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "number_pattern": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "keeping": {
                                        "type": "string",
                                        "enum": [
                                            "CANIDEX",
                                            "EXTERNAL"
                                        ]
                                    },
                                    "external_url": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Zuchtbuch anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/breed-abbreviations": {
            "get": {
                "summary": "Rassekürzel der Stelle",
                "description": "Rassekürzel für das Nummernschema (E76) und die wählbaren Rassen.\nSeitenrecht `READ:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E326); ohne Zugang 404, ohne Recht 403.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Rassekürzel der Stelle",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "entries",
                                                "breeds"
                                            ],
                                            "properties": {
                                                "entries": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "breeds": {
                                                    "type": "array"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs": {
            "get": {
                "summary": "Hundesuche im Arbeitskontext",
                "description": "Erweiterte Hundesuche mit den Filtern der Dogbase (E134) über die Rassen der Stelle (E262), nur sichtbare Datensätze; ohne Suchbegriff und Filter keine Treffer (`searched: false`).\nSeitenrecht `READ:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E326); ohne Zugang 404, ohne Recht 403.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "description": "Name, Zwinger (Teilwort) oder Kennung (Chip, Zuchtbuchnummer, CX-ID, exakt)",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "f",
                        "in": "query",
                        "description": "Filter wie in der Hundesuche der Weboberfläche (`f[breed]=CXB-…`, `f[sex]=MALE`, Zeilen `f[health][0][type]=…`, `f[sort]=-date_of_birth` bzw. Rangliste `bv:<ID>`/`cp:<Code>`); Auswahlwerte aus `dogs/search-options`",
                        "style": "deepObject",
                        "explode": true,
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Hundesuche im Arbeitskontext",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data",
                                        "meta"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        },
                                        "meta": {
                                            "type": "object",
                                            "required": [
                                                "total",
                                                "page",
                                                "pages",
                                                "per_page",
                                                "searched",
                                                "by_identifier"
                                            ],
                                            "properties": {
                                                "total": {
                                                    "type": "integer"
                                                },
                                                "page": {
                                                    "type": "integer"
                                                },
                                                "pages": {
                                                    "type": "integer"
                                                },
                                                "per_page": {
                                                    "type": "integer"
                                                },
                                                "searched": {
                                                    "type": "boolean"
                                                },
                                                "by_identifier": {
                                                    "type": "boolean"
                                                },
                                                "rankings": {
                                                    "type": "object"
                                                },
                                                "ranking": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/export": {
            "get": {
                "summary": "Treffer der Hundesuche als CSV oder Excel",
                "description": "Alle Treffer der Suche (gleiche Filter wie `dogs`, höchstens 10.000) als Datei (E147), ohne Personendaten.\nSeitenrecht `READ:DOGS` im Arbeitskontext (E326); ohne Suche oder Filter 422.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "csv",
                                "xlsx"
                            ]
                        }
                    },
                    {
                        "name": "groups[]",
                        "in": "query",
                        "style": "form",
                        "explode": true,
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "string",
                                "enum": [
                                    "parents",
                                    "health",
                                    "genetics",
                                    "results",
                                    "titles",
                                    "breeding_values"
                                ]
                            }
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "description": "Name, Zwinger (Teilwort) oder Kennung (Chip, Zuchtbuchnummer, CX-ID, exakt)",
                        "schema": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "f",
                        "in": "query",
                        "description": "Filter wie in der Hundesuche der Weboberfläche (`f[breed]=CXB-…`, `f[sex]=MALE`, Zeilen `f[health][0][type]=…`, `f[sort]=-date_of_birth` bzw. Rangliste `bv:<ID>`/`cp:<Code>`); Auswahlwerte aus `dogs/search-options`",
                        "style": "deepObject",
                        "explode": true,
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Datei",
                        "content": {
                            "text/csv": {
                                "schema": {
                                    "type": "string"
                                }
                            },
                            "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/search-options": {
            "get": {
                "summary": "Auswahllisten der Hundesuche",
                "description": "Rassen der Stelle und Auswahllisten (Zuchtbücher, Befunde, Gentests, Länder, Ergebnisse, Titel, Farben, Zuchtwert-Merkmale, eigene Hundelisten) für das Suchformular.\nSeitenrecht `READ:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E326); ohne Zugang 404, ohne Recht 403.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Auswahllisten der Hundesuche",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "breeds"
                                            ],
                                            "properties": {
                                                "breeds": []
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/data-quality": {
            "get": {
                "summary": "Datenqualität der Stelle",
                "description": "Offene Hinweise zur Datenqualität der betreuten Rassen (T79): Zusammenfassung je Regel und Hinweise seitenweise, optional nach Regel gefiltert.\nSeitenrecht `READ:PEDIGREE` im Arbeitskontext (CANIDEX Kennel Club, E326); ohne Zugang 404, ohne Recht 403.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "rule",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Datenqualität der Stelle",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data",
                                        "issues"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        },
                                        "issues": {
                                            "$ref": "#/components/schemas/ClubList"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/logo": {
            "post": {
                "summary": "Logo hochladen",
                "description": "PNG, JPEG oder SVG bis 2 MB (E151).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "logo"
                                ],
                                "properties": {
                                    "logo": {
                                        "type": "string",
                                        "format": "binary"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Logo hochladen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "delete": {
                "summary": "Logo entfernen",
                "description": "\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Logo entfernen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "get": {
                "summary": "Logo einer Organisation",
                "description": "Logo für Unterlagen und Kopf der Fachprodukte (E151, E326), als PNG, JPEG oder SVG (ohne Skripte); ohne Logo 404.",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    },
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    },
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Logo",
                        "content": {
                            "image/png": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            },
                            "image/jpeg": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            },
                            "image/svg+xml": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/proposals": {
            "get": {
                "summary": "Vorschläge an die Stelle",
                "description": "Offen (Standard), entschieden oder angekündigt (E74), neueste zuerst, mit Kurzfassung.\nSeitenrecht `READ:PROPOSALS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "filter",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "open",
                                "decided",
                                "announced"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Vorschläge an die Stelle",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ClubList"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/proposals/{proposal}": {
            "get": {
                "summary": "Vorschlag mit Klartexten",
                "description": "Wie in der Weboberfläche: Klartexte; beim Deckantrag Momentaufnahme (E84), solange offen Deckprüfung und nötige Ausnahmen (E85), Rüde und Hündin im Vergleich (E132).\nSeitenrecht `READ:PROPOSALS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "proposal",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Vorschlag mit Klartexten",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/proposals/{proposal}/mating-analysis": {
            "get": {
                "summary": "Verpaarungsanalyse eines Deckantrags",
                "description": "Momentaufnahme beim Einreichen (E84); ohne Analyse `data: null`.\nSeitenrecht `READ:PROPOSALS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "proposal",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Verpaarungsanalyse eines Deckantrags",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": []
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/proposals/{proposal}/decision-document": {
            "get": {
                "summary": "Bescheid zu einem Selbstnachweis",
                "description": "Hochgeladener Bescheid einer Stelle ohne CANIDEX (E215) als Datei.\nSeitenrecht `READ:PROPOSALS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "proposal",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Bescheid zu einem Selbstnachweis",
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/proposals/{proposal}/decision-document/verify": {
            "post": {
                "summary": "Bescheid als nachgeprüft markieren",
                "description": "Der Verein bestätigt, dass der Bescheid echt ist (E218).\nSeitenrecht `APPROVE:PROPOSALS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "proposal",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Bescheid als nachgeprüft markieren",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/self-confirmations": {
            "get": {
                "summary": "Selbstnachweise der Stelle",
                "description": "Hochgeladene Nachweise aus der Zeit ohne CANIDEX (E215, E218).\nSeitenrecht `READ:PROPOSALS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Selbstnachweise der Stelle",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/self-confirmations/{confirmation}/document": {
            "get": {
                "summary": "Datei eines Selbstnachweises",
                "description": "Download des Nachweises.\nSeitenrecht `READ:PROPOSALS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "confirmation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Datei eines Selbstnachweises",
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/self-confirmations/{confirmation}/verify": {
            "post": {
                "summary": "Selbstnachweis als nachgeprüft markieren",
                "description": "E218.\nSeitenrecht `APPROVE:PROPOSALS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "confirmation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Selbstnachweis als nachgeprüft markieren",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/kennels/{kennel}": {
            "get": {
                "summary": "Zwinger im Arbeitskontext",
                "description": "Zwingerprofil mit `at_club` (Antrag liegt bei diesem Verein), `transferable`, Namen zu den IDs (`labels`) und Würfen.\nSeitenrecht `READ:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "kennel",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Zwinger im Arbeitskontext",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/kennels/{kennel}/owner-change": {
            "post": {
                "summary": "Inhaberwechsel eintragen",
                "description": "Direkt durch den Verein, der den Zwinger heute führt (E26, E319); Antwort wie `GET kennels/{kennel}`.\nSeitenrecht `APPROVE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "kennel",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "owners",
                                    "date"
                                ],
                                "properties": {
                                    "owners": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "date": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Inhaberwechsel eintragen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/kennels/{kennel}/inspections": {
            "post": {
                "summary": "Zwingerbesichtigung erfassen",
                "description": "E150.\nSeitenrecht `APPROVE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "kennel",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "inspected_on",
                                    "reason",
                                    "result"
                                ],
                                "properties": {
                                    "inspected_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "reason": {
                                        "type": "string",
                                        "enum": [
                                            "FIRST",
                                            "MOVE",
                                            "REPEAT",
                                            "OCCASION"
                                        ]
                                    },
                                    "result": {
                                        "type": "string",
                                        "enum": [
                                            "OK",
                                            "CONDITIONS",
                                            "FAILED"
                                        ]
                                    },
                                    "inspector": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "conditions": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "report": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Zwingerbesichtigung erfassen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/litters/{litter}": {
            "get": {
                "summary": "Wurf mit Verwaltungsangaben",
                "description": "Chip, Zuchtbuchnummer, Farbe und Geburtsangaben je Welpe, Checkliste der Abnahme (E103), Zuchtbücher mit nächster Nummer (E68, E76), Abnahmeplan (E75), Papiere (E73).\nSeitenrecht `READ:REGISTRATIONS:any` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "litter",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Wurf mit Verwaltungsangaben",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/litters/{litter}/inspection-schedule": {
            "post": {
                "summary": "Wurfabnahme ankündigen",
                "description": "E75; Antwort wie `GET litters/{litter}`.\nSeitenrecht `APPROVE:REGISTRATIONS:any` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "litter",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "planned_at"
                                ],
                                "properties": {
                                    "planned_at": {
                                        "type": "string",
                                        "example": "2026-12-01T10:00"
                                    },
                                    "inspector": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "note": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Wurfabnahme ankündigen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/litters/{litter}/inspection": {
            "post": {
                "summary": "Wurfabnahme eintragen",
                "description": "Wie im Vereinsbereich: je Welpe (Schlüssel = CX-ID) Chip, angenommen, Bemerkung, Checkliste (E103), Farbe (E114); abgenommene Welpen ins Zuchtbuch des Hauptvereins (E68, E93).\nSeitenrecht `APPROVE:REGISTRATIONS:any` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "litter",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "inspected_on",
                                    "inspector",
                                    "puppies"
                                ],
                                "properties": {
                                    "inspected_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "inspector": {
                                        "type": "string"
                                    },
                                    "notes": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "registry": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "puppies": {
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "object",
                                            "required": [
                                                "microchip"
                                            ],
                                            "properties": {
                                                "accepted": {
                                                    "type": "boolean"
                                                },
                                                "microchip": {
                                                    "type": "string"
                                                },
                                                "remarks": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "findings": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "coat_color": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "coat_marking": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Wurfabnahme eintragen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/litters/{litter}/papers-issued": {
            "post": {
                "summary": "Papiere als ausgestellt vermerken",
                "description": "E73.\nSeitenrecht `APPROVE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "litter",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "issued_on"
                                ],
                                "properties": {
                                    "issued_on": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Papiere als ausgestellt vermerken",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/litters/{litter}/puppies/{puppy}/birth": {
            "put": {
                "summary": "Geburtsangaben eines Welpen",
                "description": "E70; durch den Verein.\nSeitenrecht `APPROVE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "litter",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "puppy",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "birth_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "enum": [
                                            "NATURAL",
                                            "ASSISTED",
                                            "CESAREAN",
                                            null
                                        ]
                                    },
                                    "born_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "birth_order": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Geburtsangaben eines Welpen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/matings/{mating}/coat-options": {
            "get": {
                "summary": "Farbkatalog für die Welpen einer Deckung",
                "description": "Katalog der Authority (E114).\nSeitenrecht `APPROVE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "mating",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Farbkatalog für die Welpen einer Deckung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/breeding/exception-requirements": {
            "get": {
                "summary": "Nötige Ausnahmen übergeordneter Stellen",
                "description": "Je Stelle Regeln/Sperren und Stand `required|requested|granted` (E85).\nSeitenrecht `APPROVE:REGISTRATIONS` oder `WRITE:REGISTRATIONS` im Arbeitskontext – wie die Seite „Deckung erfassen“ (CANIDEX Kennel Club, E327, E336).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "sire",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "dam",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Nötige Ausnahmen übergeordneter Stellen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/rule-exceptions": {
            "post": {
                "summary": "Ausnahme beantragen",
                "description": "Vorschlag `RULE_EXCEPTION` an die Stelle, nur wenn nötig und noch nicht beantragt (E85).\nSeitenrecht `APPROVE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "sire",
                                    "dam",
                                    "authority",
                                    "reason"
                                ],
                                "properties": {
                                    "sire": {
                                        "type": "string"
                                    },
                                    "dam": {
                                        "type": "string"
                                    },
                                    "authority": {
                                        "type": "string"
                                    },
                                    "reason": {
                                        "type": "string",
                                        "minLength": 10
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Ausnahme beantragen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/breeding-restrictions/options": {
            "get": {
                "summary": "Auswahl für Zuchtsperren",
                "description": "`can_restrict`, Regelkatalog und Editor-Katalog nach Freigaben der Rasse (E66, E104).\nSeitenrecht `READ:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Auswahl für Zuchtsperren",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/breeding-restrictions": {
            "post": {
                "summary": "Zuchtsperre oder -auflage verhängen",
                "description": "E66; nur betreute Rassen.\nSeitenrecht `APPROVE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "kind",
                                    "valid_from"
                                ],
                                "properties": {
                                    "kind": {
                                        "type": "string",
                                        "enum": [
                                            "BAN",
                                            "CONDITION"
                                        ]
                                    },
                                    "valid_from": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "valid_until": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "text": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Zuchtsperre oder -auflage verhängen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/breeding-restrictions/{restriction}/conditions": {
            "post": {
                "summary": "Bedingung für den Partner hinzufügen",
                "description": "Regeltyp und Parameter wie im Regelwerk (E66).\nSeitenrecht `APPROVE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "restriction",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "type"
                                ],
                                "properties": {
                                    "type": {
                                        "type": "string"
                                    },
                                    "parameters": {
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Bedingung für den Partner hinzufügen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/breeding-restrictions/{restriction}/conditions/{index}": {
            "delete": {
                "summary": "Bedingung entfernen",
                "description": "E66.\nSeitenrecht `APPROVE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "restriction",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "index",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Bedingung entfernen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/breeding-restrictions/{restriction}/lift": {
            "post": {
                "summary": "Zuchtsperre aufheben",
                "description": "Mit Datum und Begründung (E66).\nSeitenrecht `APPROVE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E327).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "restriction",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "lifted_on",
                                    "reason"
                                ],
                                "properties": {
                                    "lifted_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Zuchtsperre aufheben",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/registries/{registry}/keeping": {
            "put": {
                "summary": "Führung des Zuchtbuchs",
                "description": "In CANIDEX oder extern mit Adresse (E123).\nSeitenrecht `WRITE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "registry",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "keeping"
                                ],
                                "properties": {
                                    "keeping": {
                                        "type": "string",
                                        "enum": [
                                            "CANIDEX",
                                            "EXTERNAL"
                                        ]
                                    },
                                    "external_url": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Führung des Zuchtbuchs",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/registries/{registry}/pattern": {
            "put": {
                "summary": "Nummernschema des Zuchtbuchs",
                "description": "Platzhalter `{JJJJ}`, `{JJ}`, `{N…}`, `{RASSE}`, `{FCI}` (E68, E76).\nSeitenrecht `WRITE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "registry",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "number_pattern": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Nummernschema des Zuchtbuchs",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/registries/{registry}/registrations": {
            "post": {
                "summary": "Hund ins Zuchtbuch eintragen",
                "description": "Einzeleintragung mit Nummer und Datum.\nSeitenrecht `WRITE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "registry",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "dog",
                                    "number"
                                ],
                                "properties": {
                                    "dog": {
                                        "type": "string"
                                    },
                                    "number": {
                                        "type": "string"
                                    },
                                    "date": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Hund ins Zuchtbuch eintragen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/registrations/{registration}/status": {
            "put": {
                "summary": "Stand eines Zuchtbucheintrags",
                "description": "ACTIVE, TRANSFERRED oder CANCELLED.\nSeitenrecht `WRITE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "registration",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "status"
                                ],
                                "properties": {
                                    "status": {
                                        "type": "string",
                                        "enum": [
                                            "ACTIVE",
                                            "TRANSFERRED",
                                            "CANCELLED"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Stand eines Zuchtbucheintrags",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/breed-abbreviations/{breed}": {
            "put": {
                "summary": "Rassekürzel setzen",
                "description": "Für das Nummernschema (E76); leer entfernt das Kürzel.\nSeitenrecht `WRITE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "breed",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "abbreviation": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Rassekürzel setzen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}": {
            "patch": {
                "summary": "Stammdaten eines Hundes ändern",
                "description": "Name, Geschlecht, Daten (Teildaten JJJJ[-MM[-TT]]), Rasse, Varietäten, Zwinger, Farbe; mit Begründung in den Berichtigungen (E78). Antwort wie `edit-options`.\nSeitenrecht `WRITE:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "sex",
                                    "breed"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "sex": {
                                        "type": "string",
                                        "enum": [
                                            "MALE",
                                            "FEMALE",
                                            "UNKNOWN"
                                        ]
                                    },
                                    "date_of_birth": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "date_of_death": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "breed": {
                                        "type": "string"
                                    },
                                    "kennel": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "varieties": {
                                        "type": "object"
                                    },
                                    "coat": {
                                        "type": "object",
                                        "properties": {
                                            "color": {
                                                "type": [
                                                    "integer",
                                                    "null"
                                                ]
                                            },
                                            "marking": {
                                                "type": [
                                                    "integer",
                                                    "null"
                                                ]
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Stammdaten eines Hundes ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/edit-options": {
            "get": {
                "summary": "Stammdaten zum Bearbeiten",
                "description": "Varietäten, Farbkatalog (E114), Kennungen, Eltern, Berichtigungen, `can_edit` (WRITE DOGS + betreute Rasse).\nSeitenrecht `READ:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Stammdaten zum Bearbeiten",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/parents/{role}": {
            "put": {
                "summary": "Vater oder Mutter setzen",
                "description": "Mit Begründung (E78); `role` = sire oder dam. Antwort wie `edit-options`.\nSeitenrecht `WRITE:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "role",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "parent",
                                    "reason"
                                ],
                                "properties": {
                                    "parent": {
                                        "type": "string"
                                    },
                                    "reason": {
                                        "type": "string",
                                        "minLength": 10
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Vater oder Mutter setzen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/identifiers": {
            "post": {
                "summary": "Kennung hinzufügen",
                "description": "Chip oder Tätowierung.\nSeitenrecht `WRITE:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "type",
                                    "value"
                                ],
                                "properties": {
                                    "type": {
                                        "type": "string",
                                        "enum": [
                                            "MICROCHIP",
                                            "TATTOO"
                                        ]
                                    },
                                    "value": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Kennung hinzufügen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/identifiers/{identifier}": {
            "delete": {
                "summary": "Kennung entfernen",
                "description": "Mit Begründung im Body.\nSeitenrecht `WRITE:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "identifier",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "reason"
                                ],
                                "properties": {
                                    "reason": {
                                        "type": "string",
                                        "minLength": 10
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Kennung entfernen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/attributes": {
            "get": {
                "summary": "Weitere Angaben der Stelle zum Hund",
                "description": "Dynamische Attribute (T83) mit `can_edit`.\nSeitenrecht `READ:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Weitere Angaben der Stelle zum Hund",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "put": {
                "summary": "Weitere Angaben speichern",
                "description": "Werte je Code; Antwort wie GET.\nSeitenrecht `WRITE:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "values": {
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Weitere Angaben speichern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/capture-options": {
            "get": {
                "summary": "Auswahl zum Erfassen",
                "description": "Befundarten und Marker nach Freigabe der Rasse (E104), Labore, Dokumentarten, anhängbare Datensätze; `can_capture` nach den Rechten der Rolle.\nSeitenrecht `READ:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Auswahl zum Erfassen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/health-tests": {
            "post": {
                "summary": "Befund erfassen",
                "description": "Mit Seitenangaben `left`/`right` und Labor.\nSeitenrecht `WRITE:HEALTH` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "type",
                                    "performed_at",
                                    "result"
                                ],
                                "properties": {
                                    "type": {
                                        "type": "string"
                                    },
                                    "performed_at": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "result": {
                                        "type": "string"
                                    },
                                    "left": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "right": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "laboratory": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Befund erfassen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/genetic-tests": {
            "post": {
                "summary": "Gentest erfassen",
                "description": "Ergebnis oder Genotyp je Marker (`markers`: Code → Genotyp).\nSeitenrecht `WRITE:GENETICS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "type"
                                ],
                                "properties": {
                                    "type": {
                                        "type": "string"
                                    },
                                    "sample_date": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "result": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "laboratory": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "markers": {
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Gentest erfassen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/documents": {
            "post": {
                "summary": "Dokument ablegen",
                "description": "Datei (PDF/Bild bis 20 MB) oder https-Link an einen Datensatz des Hundes.\nSeitenrecht `WRITE:DOCUMENTS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "record",
                                    "type",
                                    "title"
                                ],
                                "properties": {
                                    "record": {
                                        "type": "string"
                                    },
                                    "type": {
                                        "type": "string"
                                    },
                                    "title": {
                                        "type": "string"
                                    },
                                    "file": {
                                        "type": "string",
                                        "format": "binary"
                                    },
                                    "url": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Dokument ablegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/title-options": {
            "get": {
                "summary": "Titel zum Eintragen",
                "description": "Titel aus dem Katalog des Hauptvereins und fremde Titel, Ergebnisse und gehaltene Titel als Nachweis (E61, E63); `can_award`.\nSeitenrecht `READ:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Titel zum Eintragen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/dogs/{dog}/titles": {
            "post": {
                "summary": "Titel eintragen",
                "description": "Eigener Katalog → direkt (201, `awarded`), fremder → Antrag bei der vergebenden Stelle (202, `proposed`).\nSeitenrecht `WRITE:TITLES:any` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dog",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "title",
                                    "awarded_at"
                                ],
                                "properties": {
                                    "title": {
                                        "type": "string"
                                    },
                                    "awarded_at": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "event_result": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "evidence_results": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "evidence_titles": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "remarks": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Titel eintragen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "202": {
                        "description": "Beantragt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/breed-releases": {
            "get": {
                "summary": "Freigaben je Rasse",
                "description": "Marker, Befundarten, Checkliste (E104) mit Häufigkeiten (E141).\nSeitenrecht `WRITE:GENETICS|WRITE:HEALTH` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "breed",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "kind",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Freigaben je Rasse",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/breed-releases/{breed}/{kind}": {
            "put": {
                "summary": "Freigaben speichern",
                "description": "Codes und Namen je Rasse (E138).\nSeitenrecht `WRITE:GENETICS|WRITE:HEALTH` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "breed",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "kind",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "codes": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "names": {
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Freigaben speichern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/breed-releases/{breed}/frequencies": {
            "put": {
                "summary": "Allelhäufigkeiten speichern",
                "description": "Anteil 0–1 je Marker (E141).\nSeitenrecht `WRITE:GENETICS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "breed",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "frequencies": {
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": [
                                                "number",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Allelhäufigkeiten speichern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": []
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/coat-options": {
            "get": {
                "summary": "Farbkatalog der Stelle",
                "description": "Eigener und geerbter FCI-Katalog (E114, E265) mit Zahl der Hunde.\nSeitenrecht `READ:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "breed",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Farbkatalog der Stelle",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Farbe anlegen",
                "description": "Antwort wie GET für die Rasse.\nSeitenrecht `WRITE:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "breed",
                                    "kind",
                                    "name"
                                ],
                                "properties": {
                                    "breed": {
                                        "type": "string"
                                    },
                                    "kind": {
                                        "type": "string",
                                        "enum": [
                                            "COLOR",
                                            "MARKING"
                                        ]
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "position": {
                                        "type": "integer"
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Farbe anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/coat-options/{option}": {
            "put": {
                "summary": "Farbe ändern",
                "description": "Antwort wie GET für die Rasse.\nSeitenrecht `WRITE:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "option",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "breed",
                                    "kind",
                                    "name"
                                ],
                                "properties": {
                                    "breed": {
                                        "type": "string"
                                    },
                                    "kind": {
                                        "type": "string",
                                        "enum": [
                                            "COLOR",
                                            "MARKING"
                                        ]
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "position": {
                                        "type": "integer"
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Farbe ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "delete": {
                "summary": "Farbe entfernen",
                "description": "Noch an Hunden verwendet → nur deaktiviert (`deactivated`).\nSeitenrecht `WRITE:DOGS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "option",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Farbe entfernen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/breeding-value-traits": {
            "get": {
                "summary": "Zuchtwert-Merkmale",
                "description": "Merkmale je Rasse (E102), letzter Lauf, wählbare Quellen.\nSeitenrecht `WRITE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "breed",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Zuchtwert-Merkmale",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/breeding-value-traits/{breed}": {
            "put": {
                "summary": "Zuchtwert-Merkmal speichern",
                "description": "Anlegen oder ändern über `code` (E102, E109).\nSeitenrecht `WRITE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "breed",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "code",
                                    "name"
                                ],
                                "properties": {
                                    "code": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "heritability": {
                                        "type": [
                                            "number",
                                            "null"
                                        ]
                                    },
                                    "higher_is_better": {
                                        "type": "boolean"
                                    },
                                    "health": {
                                        "type": "boolean"
                                    },
                                    "min_reliability": {
                                        "type": "integer"
                                    },
                                    "sources": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "required": [
                                                "kind",
                                                "code"
                                            ],
                                            "properties": {
                                                "kind": {
                                                    "type": "string",
                                                    "enum": [
                                                        "RESULT",
                                                        "HEALTH"
                                                    ]
                                                },
                                                "code": {
                                                    "type": "string"
                                                },
                                                "values": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Zuchtwert-Merkmal speichern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/breeding-value-traits/{trait}/estimate": {
            "post": {
                "summary": "Zuchtwerte schätzen",
                "description": "BLUP-Lauf für das Merkmal (E102); synchron, höchstens 10 je Minute.\nSeitenrecht `WRITE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "trait",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Zuchtwerte schätzen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/examination-orders": {
            "get": {
                "summary": "Untersuchungsaufträge an die Stelle",
                "description": "Offen und erledigt (E295).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Untersuchungsaufträge an die Stelle",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/examination-orders/{order}/{action}": {
            "post": {
                "summary": "Auftrag melden oder ablehnen",
                "description": "`report` meldet den Befund als Vorschlag `HEALTH_TEST` an den Verein des Zuchtbuchs, `decline` lehnt mit Begründung ab.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "order",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "action",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "result": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "performed_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Auftrag melden oder ablehnen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dna-profiles": {
            "get": {
                "summary": "DNA-Profile der Stelle",
                "description": "Zuletzt übernommene Profile und Elternschaftsprüfungen (E297), Labore.\nSeitenrecht `WRITE:GENETICS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "DNA-Profile der Stelle",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "DNA-Profile übernehmen",
                "description": "CSV des Labors als Text (`csv`) oder Datei (`file`).\nSeitenrecht `WRITE:GENETICS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "sampled_on"
                                ],
                                "properties": {
                                    "csv": {
                                        "type": "string"
                                    },
                                    "laboratory": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "sampled_on": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "DNA-Profile übernehmen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/dna-profiles/parentage-check": {
            "post": {
                "summary": "Elternschaft prüfen",
                "description": "STR-Vergleich mit Vater und Mutter (E297).\nSeitenrecht `WRITE:GENETICS` im Arbeitskontext (CANIDEX Kennel Club, E328).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "dog"
                                ],
                                "properties": {
                                    "dog": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Elternschaft prüfen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/events": {
            "get": {
                "summary": "Veranstaltungen der Stelle",
                "description": "Neueste zuerst, aus öffentlicher Quelle bzw. ausgebucht gekennzeichnet (E160).\nSeitenrecht `READ:EVENTS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Veranstaltungen der Stelle",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ClubList"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Veranstaltung anlegen",
                "description": "Art der Stelle oder darüber (E62), Ort optional.\nSeitenrecht `WRITE:EVENTS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "type",
                                    "starts_at"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "type": {
                                        "type": "string"
                                    },
                                    "starts_at": {
                                        "type": "string"
                                    },
                                    "ends_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "location": {
                                        "type": "object",
                                        "required": [
                                            "name",
                                            "country"
                                        ],
                                        "properties": {
                                            "name": {
                                                "type": "string"
                                            },
                                            "city": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ]
                                            },
                                            "country": {
                                                "type": "string"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Veranstaltung anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/events/options": {
            "get": {
                "summary": "Auswahl für neue Veranstaltungen",
                "description": "Arten der Stelle und darüber (E62), Länder.\nSeitenrecht `WRITE:EVENTS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Auswahl für neue Veranstaltungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/events/{event}": {
            "get": {
                "summary": "Veranstaltung mit Meldungen",
                "description": "Meldungen mit Hundeführer und Stand, Klassen, Ergebnisarten mit Skala, Ergebnisse, Quelle; `can_manage`.\nSeitenrecht `READ:EVENTS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Veranstaltung mit Meldungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/events/{event}/transition": {
            "post": {
                "summary": "Stand der Veranstaltung ändern",
                "description": "Statusmaschine (T16): start, finish, cancel, adopt, book_out, reopen.\nSeitenrecht `WRITE:EVENTS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "action"
                                ],
                                "properties": {
                                    "action": {
                                        "type": "string",
                                        "enum": [
                                            "start",
                                            "finish",
                                            "cancel",
                                            "adopt",
                                            "book_out",
                                            "reopen"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Stand der Veranstaltung ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/events/{event}/entries": {
            "post": {
                "summary": "Hund melden",
                "description": "Mit Klasse (Altersgrenzen, E50) und Hundeführer.\nSeitenrecht `WRITE:EVENTS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "dog"
                                ],
                                "properties": {
                                    "dog": {
                                        "type": "string"
                                    },
                                    "class": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "handler": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Hund melden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/events/{event}/entries/{entry}/status": {
            "put": {
                "summary": "Stand einer Meldung",
                "description": "\nSeitenrecht `WRITE:EVENTS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "entry",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "status"
                                ],
                                "properties": {
                                    "status": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Stand einer Meldung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/events/{event}/entries/{entry}/results": {
            "put": {
                "summary": "Ergebnisse einer Meldung",
                "description": "Setzen, überschreiben und entfernen – alle oder keins (E60); Dezimalkomma wird angenommen. Antwort wie `GET events/{event}`.\nSeitenrecht `WRITE:RESULTS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "entry",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "results": {
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "remove": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Ergebnisse einer Meldung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/events/{event}/judges": {
            "get": {
                "summary": "Richter einer Veranstaltung",
                "description": "Einteilung und Bewertungen zum Übernehmen (E99).\nSeitenrecht `READ:EVENTS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Richter einer Veranstaltung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Richter einteilen",
                "description": "Nur mit gültiger Zulassung (`JudgeEligibility`).\nSeitenrecht `WRITE:EVENTS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "person"
                                ],
                                "properties": {
                                    "person": {
                                        "type": "string"
                                    },
                                    "class": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "breed": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "result_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Richter einteilen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/events/{event}/judges/{judge}": {
            "delete": {
                "summary": "Einteilung entfernen",
                "description": "\nSeitenrecht `WRITE:EVENTS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "judge",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Einteilung entfernen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/events/{event}/assessments/{assessment}/adopt": {
            "post": {
                "summary": "Bewertung übernehmen",
                "description": "Bewertung des Richters wird offizielles Ergebnis, Bericht in die Hundeakte (E99). Antwort wie `GET events/{event}`.\nSeitenrecht `WRITE:RESULTS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "assessment",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Bewertung übernehmen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/judges": {
            "get": {
                "summary": "Richterliste der Stelle",
                "description": "Zulassungen (E99), mit `ended=1` auch beendete.\nSeitenrecht `READ:JUDGES` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "ended",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Richterliste der Stelle",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": []
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Zulassung eintragen",
                "description": "Für Veranstaltungsart, optional Rasse und Prüfungsfach.\nSeitenrecht `WRITE:JUDGES` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "person",
                                    "event_type"
                                ],
                                "properties": {
                                    "person": {
                                        "type": "string"
                                    },
                                    "event_type": {
                                        "type": "string"
                                    },
                                    "breed": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "result_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "valid_from": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "valid_until": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "note": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Zulassung eintragen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/judges/{qualification}/end": {
            "post": {
                "summary": "Zulassung beenden",
                "description": "\nSeitenrecht `WRITE:JUDGES` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "qualification",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "valid_until"
                                ],
                                "properties": {
                                    "valid_until": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Zulassung beenden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/event-types": {
            "get": {
                "summary": "Veranstaltungsarten",
                "description": "Eigene und geerbte Arten (E62); `locked` = eigene Arten nicht freigeschaltet (E67).\nSeitenrecht `WRITE:EVENT_TYPES` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Veranstaltungsarten",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Veranstaltungsart anlegen",
                "description": "Optional mit Vorlage (Kopie); nur mit Abo-Funktion „eigene Veranstaltungsarten“.\nSeitenrecht `WRITE:EVENT_TYPES` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "code",
                                    "name"
                                ],
                                "properties": {
                                    "code": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "template": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Veranstaltungsart anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/event-types/{type}": {
            "get": {
                "summary": "Veranstaltungsart",
                "description": "Ergebnisarten und Klassen; `can_manage` nur für eigene Arten.\nSeitenrecht `WRITE:EVENT_TYPES` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "type",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Veranstaltungsart",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "put": {
                "summary": "Veranstaltungsart ändern",
                "description": "Name und aktiv.\nSeitenrecht `WRITE:EVENT_TYPES` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "type",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Veranstaltungsart ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/event-types/{type}/result-types/{result}": {
            "put": {
                "summary": "Ergebnisart speichern",
                "description": "Ohne `result` (leerer Pfadteil) neu anlegen, sonst ändern. Antwort wie `GET event-types/{type}`.\nSeitenrecht `WRITE:EVENT_TYPES` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "type",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "result",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "scale"
                                ],
                                "properties": {
                                    "code": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "scale": {
                                        "type": "object",
                                        "required": [
                                            "type"
                                        ],
                                        "properties": {
                                            "type": {
                                                "type": "string",
                                                "enum": [
                                                    "ENUM",
                                                    "NUMERIC",
                                                    "BOOLEAN",
                                                    "TEXT"
                                                ]
                                            },
                                            "values": {
                                                "type": "array",
                                                "items": {
                                                    "type": "string"
                                                }
                                            },
                                            "min": {
                                                "type": [
                                                    "number",
                                                    "null"
                                                ]
                                            },
                                            "max": {
                                                "type": [
                                                    "number",
                                                    "null"
                                                ]
                                            },
                                            "integer": {
                                                "type": "boolean"
                                            }
                                        }
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Ergebnisart speichern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/event-types/{type}/result-types": {
            "put": {
                "summary": "Ergebnisart anlegen",
                "description": "Antwort wie `GET event-types/{type}`.\nSeitenrecht `WRITE:EVENT_TYPES` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "type",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "code",
                                    "name",
                                    "scale"
                                ],
                                "properties": {
                                    "code": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "scale": {
                                        "type": "object",
                                        "required": [
                                            "type"
                                        ],
                                        "properties": {
                                            "type": {
                                                "type": "string",
                                                "enum": [
                                                    "ENUM",
                                                    "NUMERIC",
                                                    "BOOLEAN",
                                                    "TEXT"
                                                ]
                                            },
                                            "values": {
                                                "type": "array",
                                                "items": {
                                                    "type": "string"
                                                }
                                            },
                                            "min": {
                                                "type": [
                                                    "number",
                                                    "null"
                                                ]
                                            },
                                            "max": {
                                                "type": [
                                                    "number",
                                                    "null"
                                                ]
                                            },
                                            "integer": {
                                                "type": "boolean"
                                            }
                                        }
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Ergebnisart anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/event-types/{type}/classes/{class}": {
            "put": {
                "summary": "Klasse ändern",
                "description": "Antwort wie `GET event-types/{type}`.\nSeitenrecht `WRITE:EVENT_TYPES` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "type",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "class",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "code": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "min_age_months": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "max_age_months": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Klasse ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/event-types/{type}/classes": {
            "put": {
                "summary": "Klasse anlegen",
                "description": "Antwort wie `GET event-types/{type}`.\nSeitenrecht `WRITE:EVENT_TYPES` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "type",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "code",
                                    "name"
                                ],
                                "properties": {
                                    "code": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "min_age_months": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "max_age_months": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Klasse anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/titles": {
            "get": {
                "summary": "Titelkatalog",
                "description": "Katalog des Hauptvereins (Untergruppe: der des Hauptvereins, E93) mit Zahl der Vergaben, auch inaktive.\nSeitenrecht `READ:TITLES` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Titelkatalog",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Titel anlegen",
                "description": "Recht TITLE_CATALOG (E98) im Command geprüft.\nSeitenrecht `WRITE:TITLE_CATALOG` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "code",
                                    "name",
                                    "type"
                                ],
                                "properties": {
                                    "code": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "type": {
                                        "type": "string"
                                    },
                                    "active": {
                                        "type": "boolean"
                                    },
                                    "evidence_min": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "evidence_distinct": {
                                        "type": "string",
                                        "enum": [
                                            "NONE",
                                            "EVENT",
                                            "EVENT_TYPE"
                                        ]
                                    },
                                    "evidence_result_types": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "evidence_titles": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Titel anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/titles/evidence-options": {
            "get": {
                "summary": "Auswahl für Nachweise",
                "description": "Ergebnisarten nach Art und Titel nach Stelle (E63).\nSeitenrecht `WRITE:TITLE_CATALOG` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Auswahl für Nachweise",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/titles/{title}": {
            "get": {
                "summary": "Titel mit Nachweis-Voraussetzungen",
                "description": "E63.\nSeitenrecht `WRITE:TITLE_CATALOG` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "title",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Titel mit Nachweis-Voraussetzungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "put": {
                "summary": "Titel ändern",
                "description": "Code fest nach Vergabe (E39).\nSeitenrecht `WRITE:TITLE_CATALOG` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "title",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "code",
                                    "name",
                                    "type"
                                ],
                                "properties": {
                                    "code": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "type": {
                                        "type": "string"
                                    },
                                    "active": {
                                        "type": "boolean"
                                    },
                                    "evidence_min": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "evidence_distinct": {
                                        "type": "string",
                                        "enum": [
                                            "NONE",
                                            "EVENT",
                                            "EVENT_TYPE"
                                        ]
                                    },
                                    "evidence_result_types": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "evidence_titles": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Titel ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/title-awards": {
            "get": {
                "summary": "Titelvergaben",
                "description": "Neueste zuerst; in `meta` zusätzlich `can_award`, `can_manage`, `can_revoke` je nach Rolle.\nSeitenrecht `READ:TITLES` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Titelvergaben",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data",
                                        "meta"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        },
                                        "meta": {
                                            "type": "object",
                                            "required": [
                                                "page",
                                                "pages",
                                                "total",
                                                "per_page",
                                                "can_award",
                                                "can_manage",
                                                "can_revoke"
                                            ],
                                            "properties": {
                                                "page": {
                                                    "type": "integer"
                                                },
                                                "pages": {
                                                    "type": "integer"
                                                },
                                                "total": {
                                                    "type": "integer"
                                                },
                                                "per_page": {
                                                    "type": "integer"
                                                },
                                                "can_award": {
                                                    "type": "boolean"
                                                },
                                                "can_manage": {
                                                    "type": "boolean"
                                                },
                                                "can_revoke": {
                                                    "type": "boolean"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Titel vergeben",
                "description": "Aus dem Katalog des Hauptvereins, nur bei erfüllter Voraussetzung (E63).\nSeitenrecht `WRITE:TITLES:any` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "title",
                                    "dog",
                                    "awarded_at"
                                ],
                                "properties": {
                                    "title": {
                                        "type": "string"
                                    },
                                    "dog": {
                                        "type": "string"
                                    },
                                    "awarded_at": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "event_result": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "evidence_results": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "evidence_titles": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Titel vergeben",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/title-awards/{award}/revoke": {
            "post": {
                "summary": "Titel aberkennen",
                "description": "Mit Begründung.\nSeitenrecht `APPROVE:TITLES` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "award",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "reason"
                                ],
                                "properties": {
                                    "reason": {
                                        "type": "string",
                                        "minLength": 5
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Titel aberkennen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/rulesets": {
            "get": {
                "summary": "Regelwerke der Stelle",
                "description": "Alle Versionen.\nSeitenrecht `READ:RULESETS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Regelwerke der Stelle",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Regelwerk anlegen",
                "description": "Als Entwurf.\nSeitenrecht `WRITE:RULESETS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "code",
                                    "name",
                                    "purpose",
                                    "valid_from"
                                ],
                                "properties": {
                                    "code": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "purpose": {
                                        "type": "string"
                                    },
                                    "breed": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "valid_from": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "valid_until": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Regelwerk anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/rulesets/options": {
            "get": {
                "summary": "Auswahl für Regelwerke",
                "description": "Zwecke, Rassen der Stelle, Regeltypen mit Parametern, Codes, Katalog.\nSeitenrecht `READ:RULESETS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Auswahl für Regelwerke",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/rulesets/{ruleset}": {
            "get": {
                "summary": "Regelwerk mit Regelbaum",
                "description": "Geerbte Vorgaben (E42), Editor-Katalog (E104), Versionen.\nSeitenrecht `READ:RULESETS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "ruleset",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Regelwerk mit Regelbaum",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/rulesets/{ruleset}/rules": {
            "post": {
                "summary": "Regel hinzufügen",
                "description": "Typ und Parameter wie im Regelwerk (geprüft im Regeltyp).\nSeitenrecht `WRITE:RULESETS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "ruleset",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "type"
                                ],
                                "properties": {
                                    "parent": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "type": {
                                        "type": "string"
                                    },
                                    "parameters": {
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Regel hinzufügen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/rulesets/{ruleset}/rules/{rule}": {
            "delete": {
                "summary": "Regel entfernen",
                "description": "\nSeitenrecht `WRITE:RULESETS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "ruleset",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "rule",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Regel entfernen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/rulesets/{ruleset}/transition": {
            "post": {
                "summary": "Regelwerk aktivieren, außer Kraft setzen, neue Version",
                "description": "Untere Ebenen nur verschärfen (E42); `new-version` antwortet mit 201 und der neuen Version.\nSeitenrecht `WRITE:RULESETS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "ruleset",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "action"
                                ],
                                "properties": {
                                    "action": {
                                        "type": "string",
                                        "enum": [
                                            "activate",
                                            "retire",
                                            "new-version"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Regelwerk aktivieren",
                        "außer": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "201": {
                        "description": "Neue Version",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/rulesets/{ruleset}/validity": {
            "put": {
                "summary": "Gültigkeit ändern",
                "description": "Im Entwurf (E139).\nSeitenrecht `WRITE:RULESETS` im Arbeitskontext (CANIDEX Kennel Club, E329).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "ruleset",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "valid_from"
                                ],
                                "properties": {
                                    "valid_from": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "valid_until": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Gültigkeit ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/inventory": {
            "get": {
                "summary": "Inventar",
                "description": "Gegenstände mit Standort, Verantwortlichem, Anschaffung, Wert, Kassenbuchung, aktuellem Verleih und Verlauf; Summen, Ämter, Untergruppen und Veranstaltungen zur Auswahl; `retired=1` auch ausgemusterte (E352).\nSeitenrecht `READ:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E352).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "retired",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Inventar",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "can_manage",
                                                "items",
                                                "totals",
                                                "categories",
                                                "offices",
                                                "sections",
                                                "events"
                                            ],
                                            "properties": {
                                                "can_manage": {
                                                    "type": "boolean"
                                                },
                                                "items": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "id",
                                                            "name",
                                                            "value_cents",
                                                            "loan",
                                                            "loans"
                                                        ],
                                                        "properties": {
                                                            "id": {
                                                                "type": "integer"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "value_cents": {
                                                                "type": "integer"
                                                            },
                                                            "loan": {
                                                                "type": [
                                                                    "object",
                                                                    "null"
                                                                ]
                                                            },
                                                            "loans": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "object"
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                "totals": {
                                                    "type": "object",
                                                    "required": [
                                                        "count",
                                                        "value_cents",
                                                        "lent",
                                                        "overdue"
                                                    ],
                                                    "properties": {
                                                        "count": {
                                                            "type": "integer"
                                                        },
                                                        "value_cents": {
                                                            "type": "integer"
                                                        },
                                                        "lent": {
                                                            "type": "integer"
                                                        },
                                                        "overdue": {
                                                            "type": "integer"
                                                        }
                                                    }
                                                },
                                                "categories": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "offices": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "sections": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "events": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "post": {
                "summary": "Gegenstand anlegen",
                "description": "Bezeichnung, Kategorie, Inventarnummer, Standort, Amt und/oder Person (CX-ID), Anschaffung, Wert in Cent, Kassenbuchung (ID) (E352).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E352).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "category": {
                                        "type": "string"
                                    },
                                    "serial": {
                                        "type": "string"
                                    },
                                    "location": {
                                        "type": "string"
                                    },
                                    "office": {
                                        "type": "integer"
                                    },
                                    "person": {
                                        "type": "string"
                                    },
                                    "acquired_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "value_cents": {
                                        "type": "integer"
                                    },
                                    "cash_entry": {
                                        "type": "integer"
                                    },
                                    "notes": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Angelegt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/inventory/{item}": {
            "put": {
                "summary": "Gegenstand ändern",
                "description": "Felder wie beim Anlegen (E352).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E352).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "item",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "category": {
                                        "type": "string"
                                    },
                                    "serial": {
                                        "type": "string"
                                    },
                                    "location": {
                                        "type": "string"
                                    },
                                    "office": {
                                        "type": "integer"
                                    },
                                    "person": {
                                        "type": "string"
                                    },
                                    "acquired_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "value_cents": {
                                        "type": "integer"
                                    },
                                    "cash_entry": {
                                        "type": "integer"
                                    },
                                    "notes": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "delete": {
                "summary": "Gegenstand löschen",
                "description": "Nur ohne Verleih – sonst ausmustern (E352).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E352).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "item",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/inventory/{item}/retire": {
            "post": {
                "summary": "Gegenstand ausmustern",
                "description": "Mit Datum und Grund ausmustern, ohne Datum wieder in den Bestand nehmen; nicht, solange er verliehen ist (E352).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E352).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "item",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "retired_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/inventory/{item}/loans": {
            "post": {
                "summary": "Gegenstand verleihen",
                "description": "An genau eine Stelle: Mitglied (`person`, CX-ID), Untergruppe (`section`, CXO), Veranstaltung (`event`, CXE) oder frei benannt (`borrower`); mit Verleih- und Rückgabedatum; überfällige Rückgaben erscheinen in den Aufgaben (E350) (E352).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E352).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "item",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "lent_on"
                                ],
                                "properties": {
                                    "person": {
                                        "type": "string"
                                    },
                                    "section": {
                                        "type": "string"
                                    },
                                    "event": {
                                        "type": "string"
                                    },
                                    "borrower": {
                                        "type": "string"
                                    },
                                    "lent_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "due_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "notes": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Angelegt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/inventory-loans/{loan}/return": {
            "post": {
                "summary": "Rückgabe eintragen",
                "description": "Rückgabedatum (ohne Angabe heute) (E352).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E352).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "loan",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "returned_on": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/inventory/export": {
            "get": {
                "summary": "Bestandsliste als CSV oder Excel",
                "description": "Bestand zum Stichtag `on` (ohne Angabe heute) mit Wert, Kassenbuchung und Verleih, Summenzeile – für die Kassenprüfung (E352).\nSeitenrecht `READ:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E352).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "on",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "csv",
                                "xlsx"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Datei",
                        "content": {
                            "text/csv": {
                                "schema": {
                                    "type": "string"
                                }
                            },
                            "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/statistics": {
            "get": {
                "summary": "Auswertungen zum Verein",
                "description": "Mitgliederentwicklung der letzten zehn Jahre (Bestand am 31.12., Eintritte, Austritte), Bestandsmeldung nach Altersgruppe und Geschlecht, Zugehörige je Untergruppe, Mitglieder je Mitgliedschaftsart und – mit `READ:FEES` – Beiträge Soll/Ist/offen je Beitragsart (`fees` sonst `null`); in einer Untergruppe zählen die Zugehörigen (E351).\nSeitenrecht `READ:PEOPLE` im Arbeitskontext (CANIDEX Kennel Club, E351).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Auswertung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "year",
                                                "is_section",
                                                "development",
                                                "census",
                                                "sections",
                                                "types",
                                                "fees"
                                            ],
                                            "properties": {
                                                "year": {
                                                    "type": "integer"
                                                },
                                                "is_section": {
                                                    "type": "boolean"
                                                },
                                                "development": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "year",
                                                            "members",
                                                            "joined",
                                                            "left"
                                                        ],
                                                        "properties": {
                                                            "year": {
                                                                "type": "integer"
                                                            },
                                                            "members": {
                                                                "type": "integer"
                                                            },
                                                            "joined": {
                                                                "type": "integer"
                                                            },
                                                            "left": {
                                                                "type": "integer"
                                                            }
                                                        }
                                                    }
                                                },
                                                "census": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "label",
                                                            "male",
                                                            "female",
                                                            "unknown",
                                                            "total"
                                                        ],
                                                        "properties": {
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "male": {
                                                                "type": "integer"
                                                            },
                                                            "female": {
                                                                "type": "integer"
                                                            },
                                                            "unknown": {
                                                                "type": "integer"
                                                            },
                                                            "total": {
                                                                "type": "integer"
                                                            }
                                                        }
                                                    }
                                                },
                                                "sections": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "types": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "fees": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/statistics/export": {
            "get": {
                "summary": "Auswertung als CSV oder Excel",
                "description": "Eine Tabelle der Auswertung (`development`, `census`, `sections`, `types`, `fees`) als Datei; `fees` nur mit `READ:FEES` (E351).\nSeitenrecht `READ:PEOPLE` im Arbeitskontext (CANIDEX Kennel Club, E351).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "table",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "development",
                                "census",
                                "sections",
                                "types",
                                "fees"
                            ]
                        }
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "csv",
                                "xlsx"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Datei",
                        "content": {
                            "text/csv": {
                                "schema": {
                                    "type": "string"
                                }
                            },
                            "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/tasks": {
            "get": {
                "summary": "Aufgaben",
                "description": "Hinweise aus den Vorgängen (`generated`: offene Aufnahmeanträge, Kassenabschluss und -prüfung, überfällige Beiträge, ungenutzte Mandate, auslaufende Amtszeiten) und eigene Aufgaben; `done=1` auch erledigte (E350).\nSeitenrecht `READ:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E350).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "done",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Aufgaben",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "can_manage",
                                                "generated",
                                                "tasks",
                                                "offices"
                                            ],
                                            "properties": {
                                                "can_manage": {
                                                    "type": "boolean"
                                                },
                                                "generated": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "kind",
                                                            "title",
                                                            "count"
                                                        ],
                                                        "properties": {
                                                            "kind": {
                                                                "type": "string"
                                                            },
                                                            "title": {
                                                                "type": "string"
                                                            },
                                                            "detail": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "due_on": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "count": {
                                                                "type": "integer"
                                                            }
                                                        }
                                                    }
                                                },
                                                "tasks": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "offices": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "post": {
                "summary": "Aufgabe anlegen",
                "description": "Titel, Notiz, Frist, Amt und/oder Person (CX-ID) (E350).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E350).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "title"
                                ],
                                "properties": {
                                    "title": {
                                        "type": "string"
                                    },
                                    "notes": {
                                        "type": "string"
                                    },
                                    "due_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "office": {
                                        "type": "integer"
                                    },
                                    "person": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Angelegt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/tasks/{task}": {
            "put": {
                "summary": "Aufgabe ändern",
                "description": "Wie Anlegen (E350).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E350).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "title"
                                ],
                                "properties": {
                                    "title": {
                                        "type": "string"
                                    },
                                    "notes": {
                                        "type": "string"
                                    },
                                    "due_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "office": {
                                        "type": "integer"
                                    },
                                    "person": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "delete": {
                "summary": "Aufgabe löschen",
                "description": "(E350).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E350).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/tasks/{task}/done": {
            "post": {
                "summary": "Aufgabe erledigt",
                "description": "Als erledigt vermerken bzw. mit `done: false` wieder öffnen (E350).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E350).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "task",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/honours": {
            "get": {
                "summary": "Ehrungen und Jubiläen",
                "description": "Ehrungsarten, fällige Ehrungen, runde Mitgliedsjubiläen (10, 25, 40, 50, 60, 70 Jahre) und verliehene Ehrungen eines Jahres (E348).\nSeitenrecht `READ:PEOPLE` im Arbeitskontext (CANIDEX Kennel Club, E348).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Jahr",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "year",
                                                "can_manage",
                                                "types",
                                                "due",
                                                "jubilees",
                                                "honours"
                                            ],
                                            "properties": {
                                                "year": {
                                                    "type": "integer"
                                                },
                                                "can_manage": {
                                                    "type": "boolean"
                                                },
                                                "types": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "fee_types": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "due": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "jubilees": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "honours": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "post": {
                "summary": "Ehrung verleihen",
                "description": "Mitglied (`person` = CX-ID), Ehrungsart, Datum, Anlass; setzt die Beitragsart der Ehrungsart, wenn hinterlegt (E348).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E348).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "person",
                                    "type",
                                    "awarded_on"
                                ],
                                "properties": {
                                    "person": {
                                        "type": "string"
                                    },
                                    "type": {
                                        "type": "integer"
                                    },
                                    "awarded_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "occasion": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Angelegt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/honours/{honour}": {
            "delete": {
                "summary": "Ehrung zurücknehmen",
                "description": "Verleihung löschen (E348).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E348).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "honour",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/honours/{honour}/certificate": {
            "get": {
                "summary": "Urkunde",
                "description": "Urkunde der Ehrung als PDF (E348).\nSeitenrecht `READ:PEOPLE` im Arbeitskontext (CANIDEX Kennel Club, E348).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "honour",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "PDF",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/honour-types": {
            "post": {
                "summary": "Ehrungsart anlegen",
                "description": "Name, Voraussetzung (Mitglieds-, Amtsjahre oder keine) mit Jahren, optional Beitragsart (E348).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E348).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "requirement"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "requirement": {
                                        "type": "string",
                                        "enum": [
                                            "MEMBERSHIP_YEARS",
                                            "OFFICE_YEARS",
                                            "NONE"
                                        ]
                                    },
                                    "years": {
                                        "type": "integer"
                                    },
                                    "fee_type": {
                                        "type": "integer"
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Angelegt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/honour-types/{type}": {
            "put": {
                "summary": "Ehrungsart ändern",
                "description": "Wie Anlegen (E348).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E348).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "type",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "requirement"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "requirement": {
                                        "type": "string",
                                        "enum": [
                                            "MEMBERSHIP_YEARS",
                                            "OFFICE_YEARS",
                                            "NONE"
                                        ]
                                    },
                                    "years": {
                                        "type": "integer"
                                    },
                                    "fee_type": {
                                        "type": "integer"
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/calendar": {
            "get": {
                "summary": "Vereinskalender",
                "description": "Veranstaltungen (mit Meldeschluss als eigenem Eintrag), Mitgliederversammlungen und eigene Termine im Zeitraum\n`from`–`to` (Standard: ein Monat zurück bis ein Jahr voraus, höchstens zwei Jahre) (E346).\nSeitenrecht `READ:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E346).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Termine",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "can_manage",
                                                "entries"
                                            ],
                                            "properties": {
                                                "can_manage": {
                                                    "type": "boolean"
                                                },
                                                "entries": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "uid",
                                                            "kind",
                                                            "title",
                                                            "starts_at",
                                                            "all_day"
                                                        ],
                                                        "properties": {
                                                            "uid": {
                                                                "type": "string"
                                                            },
                                                            "kind": {
                                                                "type": "string",
                                                                "enum": [
                                                                    "event",
                                                                    "deadline",
                                                                    "meeting",
                                                                    "appointment"
                                                                ]
                                                            },
                                                            "title": {
                                                                "type": "string"
                                                            },
                                                            "starts_at": {
                                                                "type": "string"
                                                            },
                                                            "ends_at": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "all_day": {
                                                                "type": "boolean"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/appointments": {
            "post": {
                "summary": "Termin anlegen",
                "description": "Eigener Termin mit Sichtbarkeit `PUBLIC`, `MEMBERS` oder `BOARD` (E346).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E346).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "title",
                                    "starts_at",
                                    "audience"
                                ],
                                "properties": {
                                    "title": {
                                        "type": "string"
                                    },
                                    "starts_at": {
                                        "type": "string"
                                    },
                                    "ends_at": {
                                        "type": "string"
                                    },
                                    "all_day": {
                                        "type": "boolean"
                                    },
                                    "location": {
                                        "type": "string"
                                    },
                                    "description": {
                                        "type": "string"
                                    },
                                    "audience": {
                                        "type": "string",
                                        "enum": [
                                            "PUBLIC",
                                            "MEMBERS",
                                            "BOARD"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Angelegt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/appointments/{appointment}": {
            "put": {
                "summary": "Termin ändern",
                "description": "Wie Anlegen (E346).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E346).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "appointment",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "title",
                                    "starts_at",
                                    "audience"
                                ],
                                "properties": {
                                    "title": {
                                        "type": "string"
                                    },
                                    "starts_at": {
                                        "type": "string"
                                    },
                                    "ends_at": {
                                        "type": "string"
                                    },
                                    "all_day": {
                                        "type": "boolean"
                                    },
                                    "location": {
                                        "type": "string"
                                    },
                                    "description": {
                                        "type": "string"
                                    },
                                    "audience": {
                                        "type": "string",
                                        "enum": [
                                            "PUBLIC",
                                            "MEMBERS",
                                            "BOARD"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "delete": {
                "summary": "Termin löschen",
                "description": "Eigene Termine lassen sich löschen (E346).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E346).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "appointment",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/documents": {
            "get": {
                "summary": "Dokumentenablage",
                "description": "Ordner mit Sichtbarkeit (`PUBLIC`, `MEMBERS`, `OFFICES`, `BOARD`) und allen Fassungen der Dokumente (E345).\nSeitenrecht `READ:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E345).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ablage",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "can_manage",
                                                "offices",
                                                "folders"
                                            ],
                                            "properties": {
                                                "can_manage": {
                                                    "type": "boolean"
                                                },
                                                "offices": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "folders": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "id",
                                                            "name",
                                                            "audience",
                                                            "documents"
                                                        ],
                                                        "properties": {
                                                            "id": {
                                                                "type": "integer"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "audience": {
                                                                "type": "string",
                                                                "enum": [
                                                                    "PUBLIC",
                                                                    "MEMBERS",
                                                                    "OFFICES",
                                                                    "BOARD"
                                                                ]
                                                            },
                                                            "documents": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "object"
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Dokument hochladen",
                "description": "Datei (PDF, Office, Text, Bild bis 20 MB) in einen Ordner; mit `replaces` als neue Fassung eines Dokuments (E345).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E345).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "folder",
                                    "file"
                                ],
                                "properties": {
                                    "folder": {
                                        "type": "integer"
                                    },
                                    "title": {
                                        "type": "string"
                                    },
                                    "file": {
                                        "type": "string",
                                        "format": "binary"
                                    },
                                    "valid_from": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "replaces": {
                                        "type": "integer"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Hochgeladen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/documents/{document}/file": {
            "get": {
                "summary": "Datei eines Dokuments",
                "description": "Download; Lesezugriff auf nicht öffentliche Dokumente ins Audit Log (E345).\nSeitenrecht `READ:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E345).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "document",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Datei",
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/documents/{document}/archive": {
            "post": {
                "summary": "Dokument archivieren",
                "description": "Archiviert statt gelöscht – Mitglieder sehen es nicht mehr (E345).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E345).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "document",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/document-folders": {
            "post": {
                "summary": "Ordner anlegen",
                "description": "Name, Sichtbarkeit `audience` und bei `OFFICES` die Ämter `offices` (E345).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E345).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "audience"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "audience": {
                                        "type": "string",
                                        "enum": [
                                            "PUBLIC",
                                            "MEMBERS",
                                            "OFFICES",
                                            "BOARD"
                                        ]
                                    },
                                    "offices": {
                                        "type": "array",
                                        "items": {
                                            "type": "integer"
                                        }
                                    },
                                    "sort": {
                                        "type": "integer"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Angelegt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/document-folders/{folder}": {
            "put": {
                "summary": "Ordner ändern",
                "description": "Wie Anlegen (E345).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E345).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "folder",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "audience"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "audience": {
                                        "type": "string",
                                        "enum": [
                                            "PUBLIC",
                                            "MEMBERS",
                                            "OFFICES",
                                            "BOARD"
                                        ]
                                    },
                                    "offices": {
                                        "type": "array",
                                        "items": {
                                            "type": "integer"
                                        }
                                    },
                                    "sort": {
                                        "type": "integer"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/member-imports/preview": {
            "post": {
                "summary": "Mitgliederliste prüfen (Vorschau)",
                "description": "Mitglieder importieren (E341): Excel (`.xlsx`) oder CSV hochladen – oder mit `token` einer früheren Vorschau und\nanderer Spaltenzuordnung `mapping` (Feld → Spaltenindex) neu prüfen. Liefert je Zeile Stand (`new`, `existing` =\nPerson schon in CANIDEX → Angebot, `member`, `error`), Werte, Fehler und Hinweise. Nichts wird angelegt; die Datei\nwird nicht gespeichert, die Vorschau gilt 60 Minuten.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E341).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "file": {
                                        "type": "string",
                                        "format": "binary"
                                    },
                                    "token": {
                                        "type": "string"
                                    },
                                    "mapping": {
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "integer"
                                        }
                                    }
                                }
                            }
                        },
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "token"
                                ],
                                "properties": {
                                    "token": {
                                        "type": "string"
                                    },
                                    "mapping": {
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Vorschau",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "token",
                                                "headers",
                                                "mapping",
                                                "fields",
                                                "fees_allowed",
                                                "rows",
                                                "summary"
                                            ],
                                            "properties": {
                                                "token": {
                                                    "type": "string"
                                                },
                                                "file_name": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "headers": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "mapping": {
                                                    "type": "object"
                                                },
                                                "fields": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "key",
                                                            "label"
                                                        ],
                                                        "properties": {
                                                            "key": {
                                                                "type": "string"
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                },
                                                "fees_allowed": {
                                                    "type": "boolean"
                                                },
                                                "rows": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "line",
                                                            "status",
                                                            "action",
                                                            "actions",
                                                            "values",
                                                            "errors",
                                                            "notes"
                                                        ],
                                                        "properties": {
                                                            "line": {
                                                                "type": "integer"
                                                            },
                                                            "status": {
                                                                "type": "string",
                                                                "enum": [
                                                                    "new",
                                                                    "existing",
                                                                    "member",
                                                                    "error"
                                                                ]
                                                            },
                                                            "action": {
                                                                "type": "string",
                                                                "enum": [
                                                                    "create",
                                                                    "offer",
                                                                    "skip"
                                                                ]
                                                            },
                                                            "actions": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "values": {
                                                                "type": "object"
                                                            },
                                                            "errors": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "notes": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "person": {
                                                                "type": [
                                                                    "object",
                                                                    "null"
                                                                ]
                                                            }
                                                        }
                                                    }
                                                },
                                                "summary": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/member-imports": {
            "get": {
                "summary": "Läufe des Mitgliederimports",
                "description": "Die letzten 20 Läufe mit Zählern, Fehlern je Zeile und Stand „rückgängig gemacht“ (E341).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E341).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Läufe",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "id",
                                                    "created_at",
                                                    "created",
                                                    "offered",
                                                    "skipped",
                                                    "failed"
                                                ],
                                                "properties": {
                                                    "id": {
                                                        "type": "integer"
                                                    },
                                                    "file_name": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "created_at": {
                                                        "type": "string"
                                                    },
                                                    "created_by": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "created": {
                                                        "type": "integer"
                                                    },
                                                    "offered": {
                                                        "type": "integer"
                                                    },
                                                    "skipped": {
                                                        "type": "integer"
                                                    },
                                                    "failed": {
                                                        "type": "integer"
                                                    },
                                                    "undone_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "errors": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Mitglieder importieren",
                "description": "Geprüfte Vorschau anlegen (E341): `actions` je Zeilennummer `create`, `offer` oder `skip` (sonst der Vorschlag).\nNeue Personen werden Mitglied mit Anschrift, Kontaktwegen, Untergruppe und – mit WRITE FEES – Beitragsart, Mandat\nund offenem Beitrag; Personen, die es schon gibt, bekommen ein Angebot (E318).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E341).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "token"
                                ],
                                "properties": {
                                    "token": {
                                        "type": "string"
                                    },
                                    "actions": {
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string",
                                            "enum": [
                                                "create",
                                                "offer",
                                                "skip"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Lauf",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "id",
                                                "created",
                                                "offered",
                                                "skipped",
                                                "failed"
                                            ],
                                            "properties": {
                                                "id": {
                                                    "type": "integer"
                                                },
                                                "created": {
                                                    "type": "integer"
                                                },
                                                "offered": {
                                                    "type": "integer"
                                                },
                                                "skipped": {
                                                    "type": "integer"
                                                },
                                                "failed": {
                                                    "type": "integer"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/member-imports/{import}/undo": {
            "post": {
                "summary": "Mitgliederimport rückgängig machen",
                "description": "Nur solange für die importierten Mitglieder keine Beiträge gestellt oder bezahlt sind (außer dem übernommenen\noffenen Beitrag ohne Zahlung). Angebote werden zurückgezogen, angelegte Personen ohne weitere Einträge anonymisiert (E341).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E341).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "import",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Rückgängig gemacht",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/members": {
            "get": {
                "summary": "Mitglieder suchen",
                "description": "Felder der Mitgliedersuche (E137), seitenweise.\nSeitenrecht `READ:PEOPLE` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "number_from",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "number_to",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "since_from",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "since_to",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "section",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "office",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "account",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "breeder",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "open_fees",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "derived",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Mitglieder suchen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ClubList"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Mitglied aufnehmen",
                "description": "Bestehende Person (`person`) → Angebot, Mitglied erst mit ihrer Zustimmung (E318, 202); neue Person (Name) → Mitglied (201).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "person": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "first_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "last_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "member_number": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Mitglied aufnehmen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "202": {
                        "description": "Angebot",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/members/search-options": {
            "get": {
                "summary": "Auswahl der Mitgliedersuche",
                "description": "Kennzahlen, Landesgruppen, Ämter.\nSeitenrecht `READ:PEOPLE` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Auswahl der Mitgliedersuche",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/members/{person}": {
            "get": {
                "summary": "Mitglied",
                "description": "Ämter, Untergruppen, Mitgliedschaften, Adressen und Kontaktwege ab „Organisationen“, Hunde, Zwinger; Lesezugriff im Audit Log. Recht WRITE ORGANIZATION oder WRITE FEES.\nSeitenrecht `READ:PEOPLE|WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "person",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Mitglied",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "patch": {
                "summary": "Mitglied ändern",
                "description": "Name und Geburtsdatum (E79). Antwort wie GET.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "person",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "last_name"
                                ],
                                "properties": {
                                    "first_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "last_name": {
                                        "type": "string"
                                    },
                                    "date_of_birth": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Mitglied ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/members/{person}/end": {
            "post": {
                "summary": "Mitgliedschaft beenden",
                "description": "\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "person",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Mitgliedschaft beenden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/members/{person}/invitation": {
            "post": {
                "summary": "Konto für ein Mitglied einladen",
                "description": "Einladungslink nur per E-Mail (E318). Statt der Passwortbestätigung der Weboberfläche mit dem Passwort des eigenen Kontos (A‑KC2); 5 Versuche je Minute.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "person",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "email",
                                    "password"
                                ],
                                "properties": {
                                    "email": {
                                        "type": "string",
                                        "format": "email"
                                    },
                                    "password": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "Konto für ein Mitglied einladen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/memberships/{membership}": {
            "patch": {
                "summary": "Mitgliedschaft ändern",
                "description": "Nummer, Eintritt, Austritt.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "membership",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "member_number": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "valid_from": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "valid_until": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Mitgliedschaft ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/membership-offers": {
            "get": {
                "summary": "Offene Angebote",
                "description": "Angebote an bestehende Personen (E318).\nSeitenrecht `READ:PEOPLE` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Offene Angebote",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/membership-offers/{offer}/withdraw": {
            "post": {
                "summary": "Angebot zurückziehen",
                "description": "\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "offer",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Angebot zurückziehen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/membership-applications": {
            "get": {
                "summary": "Aufnahmeanträge",
                "description": "Offen und die zuletzt entschiedenen (E285).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Aufnahmeanträge",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/membership-applications/{application}": {
            "get": {
                "summary": "Aufnahmeantrag",
                "description": "Mit Antworten, Beitragsart und maskiertem Mandat.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "application",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Aufnahmeantrag",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/membership-applications/{application}/accept": {
            "post": {
                "summary": "Antrag annehmen",
                "description": "Mitgliedschaft, Beitragsart und Mandat (E285). Antwort wie GET.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "application",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "member_number": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "valid_from": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Antrag annehmen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/membership-applications/{application}/reject": {
            "post": {
                "summary": "Antrag ablehnen",
                "description": "Mit Begründung. Antwort wie GET.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "application",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "reason"
                                ],
                                "properties": {
                                    "reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Antrag ablehnen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/settings/membership-applications": {
            "get": {
                "summary": "Einstellungen des Aufnahmeantrags",
                "description": "Einleitung, Zusatzfragen, Beitragsart, Mandat, Link.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Einstellungen des Aufnahmeantrags",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "put": {
                "summary": "Einstellungen des Aufnahmeantrags speichern",
                "description": "Antwort wie GET.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "enabled": {
                                        "type": "boolean"
                                    },
                                    "intro": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "questions": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "label": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string",
                                                    "enum": [
                                                        "TEXT",
                                                        "TEXTAREA",
                                                        "YES_NO"
                                                    ]
                                                },
                                                "required": {
                                                    "type": "boolean"
                                                }
                                            }
                                        }
                                    },
                                    "ask_fee_type": {
                                        "type": "boolean"
                                    },
                                    "ask_mandate": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Einstellungen des Aufnahmeantrags speichern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/offices": {
            "get": {
                "summary": "Ämter",
                "description": "Ämter mit Inhabern und Unvereinbarkeiten (E86).\nSeitenrecht `READ:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ämter",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": []
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Amt anlegen",
                "description": "Antwort: alle Ämter.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "code": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "role": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "seats": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "board": {
                                        "type": "boolean"
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Amt anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": []
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/offices/template": {
            "post": {
                "summary": "Ämter aus der Vorlage",
                "description": "Vorlage `OfficeTemplate` (E86).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ämter aus der Vorlage",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": []
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/offices/{office}": {
            "put": {
                "summary": "Amt ändern",
                "description": "Antwort: alle Ämter.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "office",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "code": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "role": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "seats": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "board": {
                                        "type": "boolean"
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Amt ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": []
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/offices/{office}/holders": {
            "post": {
                "summary": "Amt besetzen",
                "description": "Nur Mitglieder, Sitze und Unvereinbarkeiten geprüft.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "office",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "person"
                                ],
                                "properties": {
                                    "person": {
                                        "type": "string"
                                    },
                                    "valid_from": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "valid_until": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Amt besetzen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/office-holders/{holder}/end": {
            "post": {
                "summary": "Amtszeit beenden",
                "description": "\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "holder",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "valid_until": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Amtszeit beenden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/office-incompatibilities": {
            "post": {
                "summary": "Unvereinbarkeit anlegen",
                "description": "\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "office",
                                    "other"
                                ],
                                "properties": {
                                    "office": {
                                        "type": "integer"
                                    },
                                    "other": {
                                        "type": "integer"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Unvereinbarkeit anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/office-incompatibilities/{incompatibility}": {
            "delete": {
                "summary": "Unvereinbarkeit entfernen",
                "description": "\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "incompatibility",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Unvereinbarkeit entfernen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/sections": {
            "get": {
                "summary": "Untergruppen",
                "description": "Baum der Untergruppen (E87).\nSeitenrecht `READ:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Untergruppen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": []
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Untergruppe anlegen",
                "description": "Nur der Hauptverein (E112).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "short_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Untergruppe anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/sections/{subgroup}": {
            "put": {
                "summary": "Untergruppe umbenennen",
                "description": "\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "subgroup",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "short_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Untergruppe umbenennen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/sections/{subgroup}/dissolve": {
            "post": {
                "summary": "Untergruppe auflösen",
                "description": "Mit `confirm: true`.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "subgroup",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "confirm"
                                ],
                                "properties": {
                                    "on": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "confirm": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Untergruppe auflösen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/section-members": {
            "get": {
                "summary": "Zugehörige der Untergruppe",
                "description": "`{organization}` ist die Untergruppe.\nSeitenrecht `READ:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Zugehörige der Untergruppe",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": []
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Zugehörigen zuordnen",
                "description": "Eine Untergruppe je Ebene, Wechsel zum Stichtag (E87).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "person"
                                ],
                                "properties": {
                                    "person": {
                                        "type": "string"
                                    },
                                    "valid_from": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "valid_until": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Zugehörigen zuordnen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/section-members/{membership}/end": {
            "post": {
                "summary": "Zugehörigkeit beenden",
                "description": "\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "membership",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "valid_until": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Zugehörigkeit beenden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/settings": {
            "get": {
                "summary": "Einstellungen",
                "description": "Bestätigungspflicht (E74), Aufbewahrung je Veranstaltungsart (E35), Attribute (T83).\nSeitenrecht `WRITE:REGISTRATIONS|WRITE:EVENTS|WRITE:ATTRIBUTE_DEFINITIONS|WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Einstellungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/settings/confirmations/{proposalType}": {
            "put": {
                "summary": "Bestätigungspflicht setzen",
                "description": "MATING_REPORT, LITTER_REPORT, LITTER_INSPECTION_REQUEST, OWNER_CHANGE.\nSeitenrecht `WRITE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "proposalType",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "mode"
                                ],
                                "properties": {
                                    "mode": {
                                        "type": "string",
                                        "enum": [
                                            "REQUIRED",
                                            "ANNOUNCE"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Bestätigungspflicht setzen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/settings/retention/{eventType}": {
            "put": {
                "summary": "Aufbewahrungsfrist je Veranstaltungsart",
                "description": "Leer = Vorgabe.\nSeitenrecht `WRITE:EVENTS` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "eventType",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "months": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Aufbewahrungsfrist je Veranstaltungsart",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/attribute-definitions": {
            "post": {
                "summary": "Attribut anlegen",
                "description": "Für Hund, Person, Veranstaltung oder Organisation (T20, T83).\nSeitenrecht `WRITE:ATTRIBUTE_DEFINITIONS` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "entity",
                                    "code",
                                    "name",
                                    "data_type"
                                ],
                                "properties": {
                                    "entity": {
                                        "type": "string",
                                        "enum": [
                                            "dog",
                                            "person",
                                            "event",
                                            "organization"
                                        ]
                                    },
                                    "code": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "data_type": {
                                        "type": "string"
                                    },
                                    "allowed_values": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "breeds": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "visibility": {
                                        "type": "string",
                                        "enum": [
                                            "PUBLIC",
                                            "ORGANIZATION",
                                            "PRIVATE"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Attribut anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/attribute-definitions/{attribute}/active": {
            "put": {
                "summary": "Attribut aktiv/stillgelegt",
                "description": "\nSeitenrecht `WRITE:ATTRIBUTE_DEFINITIONS` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "attribute",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "active"
                                ],
                                "properties": {
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Attribut aktiv/stillgelegt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/attribute-definitions/{attribute}/breeding-approval": {
            "put": {
                "summary": "Attribut als Zuchtzulassung",
                "description": "Nur Attribute für Hunde (E136).\nSeitenrecht `WRITE:ATTRIBUTE_DEFINITIONS` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "attribute",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "approval"
                                ],
                                "properties": {
                                    "approval": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Attribut als Zuchtzulassung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/settings/embed-widgets": {
            "get": {
                "summary": "Bausteine für die Vereinswebseite",
                "description": "iframe-Adresse und Einbettungscode je Baustein (E292).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Bausteine für die Vereinswebseite",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Baustein anlegen",
                "description": "Antwort: alle Bausteine.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "kind",
                                    "domains"
                                ],
                                "properties": {
                                    "kind": {
                                        "type": "string",
                                        "enum": [
                                            "LITTERS",
                                            "STUD_DOGS",
                                            "KENNELS",
                                            "APPLICATION"
                                        ]
                                    },
                                    "domains": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Baustein anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/settings/embed-widgets/{widget}": {
            "put": {
                "summary": "Baustein ändern",
                "description": "Erlaubte Domains und aktiv.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "widget",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "domains"
                                ],
                                "properties": {
                                    "kind": {
                                        "type": "string",
                                        "enum": [
                                            "LITTERS",
                                            "STUD_DOGS",
                                            "KENNELS",
                                            "APPLICATION"
                                        ]
                                    },
                                    "domains": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Baustein ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/settings/contract-templates": {
            "get": {
                "summary": "Musterverträge (auch inaktive)",
                "description": "Für Züchter bereitgestellte Verträge (E302); die Sicht des Züchters ist `GET /organizations/{organization}/contract-templates`.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Musterverträge (auch inaktive)",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Mustervertrag hochladen",
                "description": "Bis 10 MB.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "title",
                                    "file"
                                ],
                                "properties": {
                                    "title": {
                                        "type": "string"
                                    },
                                    "file": {
                                        "type": "string",
                                        "format": "binary"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Mustervertrag hochladen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/settings/contract-templates/{template}/active": {
            "put": {
                "summary": "Mustervertrag aktiv/inaktiv",
                "description": "\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E330).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "template",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "active"
                                ],
                                "properties": {
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Mustervertrag aktiv/inaktiv",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/litter-listings": {
            "get": {
                "summary": "Wurfliste des Vereins",
                "description": "Freigegebene Würfe der Züchter: eingereicht, veröffentlicht, ausgeblendet (E291), Adresse der öffentlichen Liste.\nSeitenrecht `APPROVE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Wurfliste des Vereins",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/litter-listings/{listing}/{action}": {
            "post": {
                "summary": "Wurf veröffentlichen oder ausblenden",
                "description": "`approve` oder `hide` (mit `reason`); Produkte erhalten den Webhook `litter_listing.changed`. Antwort wie GET.\nSeitenrecht `APPROVE:REGISTRATIONS` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "listing",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "action",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Wurf veröffentlichen oder ausblenden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/club-mails": {
            "get": {
                "summary": "Rundmails",
                "description": "Gesendete Rundmails (E286) und Auswahl für die Filter.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Rundmails",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Rundmail senden",
                "description": "An alle aktiven Mitglieder nach Filtern (`filters`: section, office, breeder, open_fees, account, breed), nur mit `confirm: true`; `test: true` sendet eine Probe an das eigene Konto. 20 je Minute.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "subject",
                                    "body"
                                ],
                                "properties": {
                                    "subject": {
                                        "type": "string"
                                    },
                                    "heading": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "body": {
                                        "type": "string"
                                    },
                                    "test": {
                                        "type": "boolean"
                                    },
                                    "confirm": {
                                        "type": "boolean"
                                    },
                                    "filters": {
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "Rundmail senden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/club-mails/labels": {
            "get": {
                "summary": "Adressetiketten",
                "description": "Adressetiketten der aktiven Mitglieder als PDF (A4, `format` 3x8, 2x7 oder 3x7), Filter wie die Rundmail,\n`without_email=1` nur Mitglieder ohne E-Mail; ohne Personen mit Sperrvermerk (E347).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E347).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "3x8",
                                "2x7",
                                "3x7"
                            ]
                        }
                    },
                    {
                        "name": "section",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "office",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "breeder",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "open_fees",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "account",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "breed",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "without_email",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "PDF",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/club-mails/addresses": {
            "get": {
                "summary": "Adressliste",
                "description": "Mitgliedsnummer, Name und Anschrift als CSV (Semikolon, UTF-8 mit BOM) für den Druckdienst, Filter wie die\nRundmail (E347).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E347).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "section",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "office",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "breeder",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "open_fees",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "account",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "breed",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "without_email",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "CSV",
                        "content": {
                            "text/csv": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/club-mails/{mail}/letters": {
            "get": {
                "summary": "Rundmail als Serienbrief",
                "description": "Serienbrief (PDF, DIN 5008) einer gesendeten Rundmail bzw. Einladung – an Empfänger ohne E-Mail, mit `all=1`\nan alle (E347).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E347).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "mail",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "all",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "PDF",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/club-mails/audience": {
            "get": {
                "summary": "Empfänger einer Rundmail zählen",
                "description": "Zahl der Empfänger zu den Filtern.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "section",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "office",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "breeder",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "open_fees",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "account",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "breed",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Empfänger einer Rundmail zählen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": []
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/club-mails/{mail}": {
            "get": {
                "summary": "Rundmail",
                "description": "Mit der Liste für den Postversand (Mitglieder ohne E-Mail).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "mail",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Rundmail",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/meetings": {
            "get": {
                "summary": "Mitgliederversammlungen",
                "description": "Mit `can_write` (E289).\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Mitgliederversammlungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Versammlung anlegen",
                "description": "Antwort wie `GET meetings/{meeting}`.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "title",
                                    "starts_at",
                                    "agenda"
                                ],
                                "properties": {
                                    "title": {
                                        "type": "string"
                                    },
                                    "starts_at": {
                                        "type": "string"
                                    },
                                    "location": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "agenda": {
                                        "type": "string"
                                    },
                                    "quorum": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Versammlung anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/meetings/{meeting}": {
            "get": {
                "summary": "Versammlung",
                "description": "Anwesende, Vollmachten, Abstimmungen mit Ergebnis; das Protokoll als Druckansicht bleibt eine Seite des Core.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "meeting",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Versammlung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "put": {
                "summary": "Versammlung ändern",
                "description": "\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "meeting",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "title",
                                    "starts_at",
                                    "agenda"
                                ],
                                "properties": {
                                    "title": {
                                        "type": "string"
                                    },
                                    "starts_at": {
                                        "type": "string"
                                    },
                                    "location": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "agenda": {
                                        "type": "string"
                                    },
                                    "quorum": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Versammlung ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/meetings/{meeting}/{action}": {
            "post": {
                "summary": "Versammlung führen",
                "description": "`invite` (Rundmail an die Mitglieder), `open`, `close` (mit `minutes`), `vote` (Abstimmung anlegen: title, kind, candidates, secret, majority), `open-vote`/`close-vote` (mit `vote`). Antwort wie GET.\nSeitenrecht `WRITE:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "meeting",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "action",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "minutes": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "title": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "kind": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "enum": [
                                            "RESOLUTION",
                                            "ELECTION",
                                            null
                                        ]
                                    },
                                    "candidates": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "secret": {
                                        "type": "boolean"
                                    },
                                    "majority": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "enum": [
                                            "SIMPLE",
                                            "TWO_THIRDS",
                                            null
                                        ]
                                    },
                                    "vote": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Versammlung führen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/health-surveys": {
            "get": {
                "summary": "Gesundheitsumfragen",
                "description": "Mit Zahl der Fragen und Antworten (E300).\nSeitenrecht `READ:HEALTH` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Gesundheitsumfragen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Umfrage anlegen",
                "description": "Fragen CHOICE (mit `options`), YES_NO, NUMBER, TEXT.\nSeitenrecht `WRITE:HEALTH` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "breed",
                                    "title",
                                    "questions"
                                ],
                                "properties": {
                                    "breed": {
                                        "type": "string"
                                    },
                                    "title": {
                                        "type": "string"
                                    },
                                    "intro": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "questions": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "label": {
                                                    "type": "string"
                                                },
                                                "type": {
                                                    "type": "string",
                                                    "enum": [
                                                        "CHOICE",
                                                        "YES_NO",
                                                        "NUMBER",
                                                        "TEXT"
                                                    ]
                                                },
                                                "options": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Umfrage anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/health-surveys/{survey}/{status}": {
            "post": {
                "summary": "Umfrage öffnen oder schließen",
                "description": "`open` oder `close`.\nSeitenrecht `WRITE:HEALTH` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "survey",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "status",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Umfrage öffnen oder schließen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/health-surveys/{survey}/results": {
            "get": {
                "summary": "Auswertung einer Umfrage",
                "description": "Ohne Namen.\nSeitenrecht `READ:HEALTH` im Arbeitskontext (CANIDEX Kennel Club, E331).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "survey",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Auswertung einer Umfrage",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/subscription": {
            "get": {
                "summary": "Abo und Veranstaltungsgebühr",
                "description": "Pläne nach Produkt, Abos, Funktionen, Veranstaltungsgebühr mit PayPal und Rechnungsdaten; `can_manage` = WRITE SUBSCRIPTION. Rechnungen über `GET invoices`.\nStaffelung (E394): Pläne mit `limit`/`limit_max` und `fits` (passt zur heutigen Zahl aktiver Mitglieder, `counts`); Abos mit `over_limit` (Stufe zu klein), `discount_percent`; `bundle_discount_percent` = Kombirabatt ab zwei Produkten (E396). `providers` = eingerichtete Zahlungswege, die die zentrale Bezahlseite anbietet (`code` PAYPAL/STRIPE, E404, E407); Abos mit `portal` = Zahlungsmittel ändern möglich (Maske im Core, E410), `payment_method` = Zahlungsmittel in Worten und `saving` = Ersparnis durch den Kombirabatt je Abbuchung; `bundle_saving` = Ersparnis je Zeitraum über die laufenden Abos (E412). Je Produkt nur ein laufendes Abo (E413): Angebote mit `current` (laufendes Abo des Produkts) bieten andere Pakete nur als Wechsel an; ein zweiter Abschluss wird abgelehnt. Abos mit `voucher` (E420): `code`, `effect`, `label`, `free_until` (Gratiszeitraum bis), `charges_left` (noch rabattierte Abbuchungen), `ended`; sonst null.\nSeitenrecht `READ:ORGANIZATION` im Arbeitskontext (CANIDEX Kennel Club, E332).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Abo und Veranstaltungsgebühr",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Abo abschließen",
                "description": "Liefert die Adresse zur Freigabe bei PayPal. Rückkehr-Adressen nur auf Seiten des aufrufenden Produkts (Schema, Host, Port wie eine Rückleitungsadresse des OAuth-Clients, K4), sonst 422; nur mit Token eines vertraulichen Produkt-Clients.\nSeitenrecht `WRITE:SUBSCRIPTION` im Arbeitskontext (CANIDEX Kennel Club, E332).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "plan",
                                    "return_url",
                                    "cancel_url"
                                ],
                                "properties": {
                                    "plan": {
                                        "type": "integer"
                                    },
                                    "return_url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "cancel_url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "voucher": {
                                        "type": "string",
                                        "maxLength": 60,
                                        "description": "Gutscheincode (E420); gilt er, ist er in der Bezahlmaske schon eingetragen, sonst gibt der Kunde ihn dort ein"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Adresse der zentralen Bezahlseite im Core (E407): dort wählt der Kunde PayPal oder Karte/Lastschrift (Stripe); danach Rückkehr zu `return_url` mit `subscription_id` (PayPal-Abo bzw. Stripe-Checkout-Sitzung) – an …/confirm weitergeben",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "approve_url"
                                            ],
                                            "properties": {
                                                "approve_url": {
                                                    "type": "string"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/subscription/confirm": {
            "post": {
                "summary": "Abo nach der Rückkehr bestätigen",
                "description": "Stand bei PayPal holen.\nSeitenrecht `WRITE:SUBSCRIPTION` im Arbeitskontext (CANIDEX Kennel Club, E332).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "subscription_id"
                                ],
                                "properties": {
                                    "subscription_id": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Abo nach der Rückkehr bestätigen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/subscriptions/{subscription}/portal": {
            "post": {
                "summary": "Zahlungsmittel ändern",
                "description": "E410: Adresse der Maske „Zahlungsmittel ändern“ im Core (Karte, Apple Pay/Google Pay, SEPA, PayPal, Klarna, Amazon Pay, Revolut Pay; vorher Kundenportal E405); nur für Abos mit `portal: true` in der Übersicht, sonst 422. Rückkehr-Adresse nur auf Seiten des aufrufenden Produkts (K4).\nSeitenrecht `WRITE:SUBSCRIPTION` im Arbeitskontext (CANIDEX Kennel Club, E332).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "subscription",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "return_url"
                                ],
                                "properties": {
                                    "return_url": {
                                        "type": "string",
                                        "format": "uri"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Adresse der Maske „Zahlungsmittel ändern“",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "url"
                                            ],
                                            "properties": {
                                                "url": {
                                                    "type": "string",
                                                    "format": "uri"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/subscriptions/{subscription}/cancel": {
            "post": {
                "summary": "Abo kündigen",
                "description": "Zum Laufzeitende (E67). Antwort wie `GET subscription`.\nSeitenrecht `WRITE:SUBSCRIPTION` im Arbeitskontext (CANIDEX Kennel Club, E332).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "subscription",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Abo kündigen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/stripe-connect": {
            "get": {
                "summary": "Stripe-Konto der Organisation",
                "description": "E406: Stand des verbundenen Stripe-Kontos für Meldegeld und Beiträge; ein noch nicht geprüftes Konto wird bei Stripe nachgefragt.\nSeitenrecht `READ:ORGANIZATION` im Arbeitskontext.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Stand",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "available",
                                                "connected",
                                                "ready",
                                                "details_submitted",
                                                "payouts_enabled",
                                                "account_id"
                                            ],
                                            "properties": {
                                                "available": {
                                                    "type": "boolean",
                                                    "description": "Stripe ist im Plattformbetrieb eingerichtet"
                                                },
                                                "connected": {
                                                    "type": "boolean"
                                                },
                                                "ready": {
                                                    "type": "boolean",
                                                    "description": "Stripe hat geprüft, Zahlungen möglich"
                                                },
                                                "details_submitted": {
                                                    "type": "boolean"
                                                },
                                                "payouts_enabled": {
                                                    "type": "boolean"
                                                },
                                                "account_id": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Kennung bei Stripe (acct_…)"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "post": {
                "summary": "Stripe-Konto der Organisation verbinden",
                "description": "E406: legt beim ersten Mal ein verbundenes Konto bei Stripe an und liefert die einmalige Adresse zur Einrichtung. Rückkehr-Adressen nur auf Seiten des aufrufenden Produkts (K4).\nSeitenrecht `WRITE:SUBSCRIPTION` im Arbeitskontext.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "return_url",
                                    "refresh_url"
                                ],
                                "properties": {
                                    "return_url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "refresh_url": {
                                        "type": "string",
                                        "format": "uri"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Adresse zur Einrichtung bei Stripe",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "url"
                                            ],
                                            "properties": {
                                                "url": {
                                                    "type": "string",
                                                    "format": "uri"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "502": {
                        "description": "Stripe meldet einen Fehler"
                    }
                }
            }
        },
        "/organizations/{organization}/entitlements": {
            "get": {
                "summary": "Freischaltung der Funktionen der Organisation",
                "description": "E402: kostenpflichtige Funktionen der Organisation (`paid`) und ob ein geltendes Abo sie freischaltet (`allowed`) – darunter das Grundabo `KENNELCLUB`, ohne das CANIDEX Kennel Club gesperrt ist.\nSeitenrecht `READ:ORGANIZATION` im Arbeitskontext.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Funktionen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "feature",
                                                    "label",
                                                    "paid",
                                                    "allowed"
                                                ],
                                                "properties": {
                                                    "feature": {
                                                        "type": "string"
                                                    },
                                                    "label": {
                                                        "type": "string"
                                                    },
                                                    "paid": {
                                                        "type": "boolean"
                                                    },
                                                    "allowed": {
                                                        "type": "boolean"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/subscriptions/{subscription}/change": {
            "post": {
                "summary": "Abo auf eine andere Stufe umstellen (Upgrade)",
                "description": "E399: stellt das laufende Abo bei PayPal auf einen anderen Plan desselben Produkts um (z. B. die nächste Stufe, wenn die Mitgliederzahl die Grenze erreicht hat – `upgrade` am Abo in `GET subscription`). `approve_url` zur Zustimmung bei PayPal, null wenn sofort umgestellt; nach der Rückkehr `POST subscription/confirm`. Rückkehr-Adressen nur auf Seiten des aufrufenden Produkts (K4).\nSeitenrecht `WRITE:SUBSCRIPTION` im Arbeitskontext.\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "subscription",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "plan",
                                    "return_url",
                                    "cancel_url"
                                ],
                                "properties": {
                                    "plan": {
                                        "type": "integer"
                                    },
                                    "return_url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "cancel_url": {
                                        "type": "string",
                                        "format": "uri"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Adresse zur Zustimmung bei PayPal",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "approve_url"
                                            ],
                                            "properties": {
                                                "approve_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "format": "uri"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/subscription": {
            "get": {
                "summary": "Eigenes Abo (Fachprodukte wie CANIDEX Breeder)",
                "description": "E399: Angebot je Produkt (`offers`: Stufen bzw. Pakete, monatlich/jährlich, Empfehlung), eigene Abos mit `upgrade`, Kombirabatt, Rechnungsdaten (`event_fees.billing`); `can_manage` immer true; `providers` = eingerichtete Zahlungswege der zentralen Bezahlseite (PAYPAL, STRIPE – E404, E407); Abos mit `portal` = Zahlungsmittel ändern möglich (Maske im Core, E410), `payment_method` = Zahlungsmittel in Worten und `saving` = Ersparnis durch den Kombirabatt je Abbuchung; `bundle_saving` = Ersparnis je Zeitraum über die laufenden Abos (E412). Je Produkt nur ein laufendes Abo (E413): Angebote mit `current` (laufendes Abo des Produkts) bieten andere Pakete nur als Wechsel an; ein zweiter Abschluss wird abgelehnt. Abos mit `voucher` (E420): `code`, `effect`, `label`, `free_until` (Gratiszeitraum bis), `charges_left` (noch rabattierte Abbuchungen), `ended`; sonst null. Rechnungen über `GET /me/invoices`.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            },
            "post": {
                "summary": "Eigenes Abo abschließen",
                "description": "E399, E407: Adresse der zentralen Bezahlseite im Core – dort wählt der Kunde den Zahlungsweg, danach Rückkehr zu `return_url` mit `subscription_id`; ohne vollständige Rechnungsdaten 422 (E238). Rückkehr-Adressen nur auf Seiten des aufrufenden Produkts (K4).",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "plan",
                                    "return_url",
                                    "cancel_url"
                                ],
                                "properties": {
                                    "plan": {
                                        "type": "integer"
                                    },
                                    "return_url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "cancel_url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "voucher": {
                                        "type": "string",
                                        "maxLength": 60,
                                        "description": "Gutscheincode (E420); gilt er, ist er in der Bezahlmaske schon eingetragen, sonst gibt der Kunde ihn dort ein"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Adresse der zentralen Bezahlseite (E407)",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "approve_url"
                                            ],
                                            "properties": {
                                                "approve_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "format": "uri"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/subscription/confirm": {
            "post": {
                "summary": "Nach der Rückkehr von PayPal den Stand des eigenen Abos holen",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "subscription_id"
                                ],
                                "properties": {
                                    "subscription_id": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/subscription/billing": {
            "put": {
                "summary": "Eigene Rechnungsdaten speichern",
                "description": "E238, E399: Pflicht vor einem kostenpflichtigen Abo. Antwort wie `GET /me/subscription`.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "street",
                                    "postal_code",
                                    "city",
                                    "country",
                                    "email"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "contact_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "street": {
                                        "type": "string"
                                    },
                                    "postal_code": {
                                        "type": "string"
                                    },
                                    "city": {
                                        "type": "string"
                                    },
                                    "country": {
                                        "type": "string",
                                        "minLength": 2,
                                        "maxLength": 2
                                    },
                                    "email": {
                                        "type": "string",
                                        "format": "email"
                                    },
                                    "phone": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "vat_id": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "register_number": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/subscriptions/{subscription}/change": {
            "post": {
                "summary": "Eigenes Abo umstellen (Upgrade)",
                "description": "E399: wie `POST /organizations/{organization}/subscriptions/{subscription}/change`, für das eigene Abo.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "subscription",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "plan",
                                    "return_url",
                                    "cancel_url"
                                ],
                                "properties": {
                                    "plan": {
                                        "type": "integer"
                                    },
                                    "return_url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "cancel_url": {
                                        "type": "string",
                                        "format": "uri"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Adresse zur Zustimmung bei PayPal",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "approve_url"
                                            ],
                                            "properties": {
                                                "approve_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "format": "uri"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/subscriptions/{subscription}/portal": {
            "post": {
                "summary": "Zahlungsmittel ändern",
                "description": "E410: Adresse der Maske „Zahlungsmittel ändern“ im Core (Karte, Apple Pay/Google Pay, SEPA, PayPal, Klarna, Amazon Pay, Revolut Pay; vorher Kundenportal E405); nur für Abos mit `portal: true` in der Übersicht, sonst 422. Rückkehr-Adresse nur auf Seiten des aufrufenden Produkts (K4).",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "subscription",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "return_url"
                                ],
                                "properties": {
                                    "return_url": {
                                        "type": "string",
                                        "format": "uri"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Adresse der Maske „Zahlungsmittel ändern“",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "url"
                                            ],
                                            "properties": {
                                                "url": {
                                                    "type": "string",
                                                    "format": "uri"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/subscriptions/{subscription}/cancel": {
            "post": {
                "summary": "Eigenes Abo kündigen",
                "description": "Zum Laufzeitende (E67). Antwort wie `GET /me/subscription`.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "subscription",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "reason": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/event-fee-mandate": {
            "post": {
                "summary": "Zahlungsmittel für die Veranstaltungsgebühr hinterlegen",
                "description": "Liefert die Adresse der Bezahlmaske im Core (E195, E411); Rückkehr mit `approval_token_id`, dann `…/event-fee-mandate/confirm`. Rückkehr-Adressen nur auf Seiten des aufrufenden Produkts (Schema, Host, Port wie eine Rückleitungsadresse des OAuth-Clients, K4), sonst 422; nur mit Token eines vertraulichen Produkt-Clients.\nSeitenrecht `WRITE:SUBSCRIPTION` im Arbeitskontext (CANIDEX Kennel Club, E332).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "return_url",
                                    "cancel_url"
                                ],
                                "properties": {
                                    "return_url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "cancel_url": {
                                        "type": "string",
                                        "format": "uri"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Adresse der Bezahlmaske",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "approve_url"
                                            ],
                                            "properties": {
                                                "approve_url": {
                                                    "type": "string"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/event-fee-mandate/confirm": {
            "post": {
                "summary": "Hinterlegung bestätigen",
                "description": "Mit dem `setup_token` (= `approval_token_id` aus der Rückkehr); Antwort mit `method` (Zahlungsmittel in Worten, E411); `identity_url` führt ggf. zur Bestätigung der Rechnungsdaten bei PayPal. Rückkehr-Adressen nur auf Seiten des aufrufenden Produkts (Schema, Host, Port wie eine Rückleitungsadresse des OAuth-Clients, K4), sonst 422; nur mit Token eines vertraulichen Produkt-Clients.\nSeitenrecht `WRITE:SUBSCRIPTION` im Arbeitskontext (CANIDEX Kennel Club, E332).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "setup_token",
                                    "final_url"
                                ],
                                "properties": {
                                    "setup_token": {
                                        "type": "string"
                                    },
                                    "final_url": {
                                        "type": "string",
                                        "format": "uri"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "PayPal-Hinterlegung bestätigen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/event-fee-mandate/billing": {
            "put": {
                "summary": "Rechnungsdaten speichern",
                "description": "Pflicht vor kostenpflichtigen Abos und der Veranstaltungsgebühr (E195, E238). Antwort wie `GET subscription`.\nSeitenrecht `WRITE:SUBSCRIPTION` im Arbeitskontext (CANIDEX Kennel Club, E332).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "street",
                                    "postal_code",
                                    "city",
                                    "country",
                                    "email"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "contact_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "street": {
                                        "type": "string"
                                    },
                                    "postal_code": {
                                        "type": "string"
                                    },
                                    "city": {
                                        "type": "string"
                                    },
                                    "country": {
                                        "type": "string"
                                    },
                                    "email": {
                                        "type": "string"
                                    },
                                    "phone": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "vat_id": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "register_number": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Rechnungsdaten speichern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/event-fee-mandate/billing/paypal": {
            "post": {
                "summary": "Rechnungsdaten aus PayPal übernehmen",
                "description": "Liefert ggf. `redirect_url` zur Bestätigung bei PayPal. Rückkehr-Adressen nur auf Seiten des aufrufenden Produkts (Schema, Host, Port wie eine Rückleitungsadresse des OAuth-Clients, K4), sonst 422; nur mit Token eines vertraulichen Produkt-Clients.\nSeitenrecht `WRITE:SUBSCRIPTION` im Arbeitskontext (CANIDEX Kennel Club, E332).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "final_url"
                                ],
                                "properties": {
                                    "final_url": {
                                        "type": "string",
                                        "format": "uri"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Rechnungsdaten aus PayPal übernehmen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/event-fee-statements/{number}/pay": {
            "post": {
                "summary": "Abrechnung jetzt begleichen",
                "description": "Abbuchung über das hinterlegte PayPal-Konto.\nSeitenrecht `WRITE:SUBSCRIPTION` im Arbeitskontext (CANIDEX Kennel Club, E332).\n",
                "security": [
                    {
                        "oauth2": [
                            "club:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "number",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Abrechnung jetzt begleichen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/fees": {
            "get": {
                "summary": "Beiträge eines Jahres",
                "description": "Sollstellungen, Zahlungen, offene Posten, Mahnungen, Lastschrift-Läufe, Beitragsarten und Einstellungen (E88); IBANs nur maskiert.\nSeitenrecht `READ:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Beiträge eines Jahres",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/fees/settings": {
            "put": {
                "summary": "Beitragseinstellungen",
                "description": "Fälligkeit, Mahnfristen, Gläubiger für SEPA; leere IBAN behält die gespeicherte. Antwort wie `GET fees`.\nSeitenrecht `WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "due_month",
                                    "due_day",
                                    "reminder_days",
                                    "first_dunning_days",
                                    "second_dunning_days"
                                ],
                                "properties": {
                                    "due_month": {
                                        "type": "integer"
                                    },
                                    "due_day": {
                                        "type": "integer"
                                    },
                                    "reminder_days": {
                                        "type": "integer"
                                    },
                                    "first_dunning_days": {
                                        "type": "integer"
                                    },
                                    "second_dunning_days": {
                                        "type": "integer"
                                    },
                                    "creditor_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "creditor_id": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "creditor_iban": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "creditor_bic": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Beitragseinstellungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/fee-types": {
            "post": {
                "summary": "Beitragsart anlegen",
                "description": "Betrag in Cent.\nSeitenrecht `WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "code",
                                    "name",
                                    "amount_cents"
                                ],
                                "properties": {
                                    "code": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "amount_cents": {
                                        "type": "integer"
                                    },
                                    "valid_from": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "valid_until": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Beitragsart anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/fee-types/{type}": {
            "put": {
                "summary": "Beitragsart ändern",
                "description": "\nSeitenrecht `WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "type",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "amount_cents"
                                ],
                                "properties": {
                                    "code": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "amount_cents": {
                                        "type": "integer"
                                    },
                                    "valid_from": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "valid_until": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Beitragsart ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/breeding-fee-prices": {
            "post": {
                "summary": "Zuchtgebühr festlegen",
                "description": "Preis je Leistung ab Datum (E89 Zuchtgebühren).\nSeitenrecht `WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "service",
                                    "amount_cents",
                                    "valid_from"
                                ],
                                "properties": {
                                    "service": {
                                        "type": "string"
                                    },
                                    "amount_cents": {
                                        "type": "integer"
                                    },
                                    "valid_from": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Zuchtgebühr festlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/breeding-fee-prices/{price}": {
            "delete": {
                "summary": "Zuchtgebühr entfernen",
                "description": "\nSeitenrecht `WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "price",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Zuchtgebühr entfernen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/fees/charges": {
            "post": {
                "summary": "Sollstellung",
                "description": "Beiträge eines Jahres für alle Mitglieder mit Beitragsart.\nSeitenrecht `WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "year"
                                ],
                                "properties": {
                                    "year": {
                                        "type": "integer"
                                    },
                                    "due_on": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Sollstellung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": []
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/fee-charges/{charge}/payments": {
            "post": {
                "summary": "Zahlung erfassen",
                "description": "Betrag in Cent; bucht über das Ereignis `FeePaymentRecorded` in die Kasse.\nSeitenrecht `WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "charge",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "amount_cents",
                                    "paid_on",
                                    "method"
                                ],
                                "properties": {
                                    "amount_cents": {
                                        "type": "integer"
                                    },
                                    "paid_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "method": {
                                        "type": "string",
                                        "enum": [
                                            "TRANSFER",
                                            "CASH",
                                            "DIRECT_DEBIT"
                                        ]
                                    },
                                    "reference": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Zahlung erfassen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/fee-charges/{charge}/cancel": {
            "post": {
                "summary": "Beitrag stornieren",
                "description": "Mit Begründung.\nSeitenrecht `WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "charge",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "reason"
                                ],
                                "properties": {
                                    "reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Beitrag stornieren",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/fee-payments/{payment}/reverse": {
            "post": {
                "summary": "Zahlung stornieren",
                "description": "Mit Begründung.\nSeitenrecht `WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "payment",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "reason"
                                ],
                                "properties": {
                                    "reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Zahlung stornieren",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/fees/dunning-runs": {
            "post": {
                "summary": "Mahnlauf",
                "description": "Erinnerungen und Mahnungen nach den Fristen; Versand per E-Mail, sonst Post (PDF als Seite des Core).\nSeitenrecht `WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Mahnlauf",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/fees/collections": {
            "post": {
                "summary": "Lastschrift-Lauf",
                "description": "Erzeugt die Datei pain.008.001.08 für fällige Beiträge mit Mandat.\nSeitenrecht `WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "collection_date"
                                ],
                                "properties": {
                                    "collection_date": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Lastschrift-Lauf",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/fees/collections/{collection}/file": {
            "get": {
                "summary": "Lastschrift-Datei",
                "description": "pain.008 (XML) mit IBANs – nur mit WRITE FEES, Abruf im Audit Log.\nSeitenrecht `READ:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "collection",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Lastschrift-Datei",
                        "content": {
                            "application/xml": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/fees/dunnings/{dunning}": {
            "get": {
                "summary": "Erinnerung oder Mahnung",
                "description": "Text des Schreibens (E310).\nSeitenrecht `READ:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dunning",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Erinnerung oder Mahnung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/fees/dunnings/{dunning}/pdf": {
            "get": {
                "summary": "Erinnerung oder Mahnung als PDF",
                "description": "Brief nach DIN 5008 mit Logo und Anschrift für den Postversand (E310, E339), erzeugt über Gotenberg.\nSeitenrecht `READ:FEES` im Arbeitskontext (CANIDEX Kennel Club).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "dunning",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "PDF",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/fees/dunnings/pdf": {
            "get": {
                "summary": "Erinnerungen und Mahnungen eines Tages als PDF",
                "description": "Alle Schreiben eines Mahnlaufs (`date`) in einem PDF, wahlweise nur die ohne E-Mail-Versand (`post_only`) (E310, E339).\nSeitenrecht `READ:FEES` im Arbeitskontext (CANIDEX Kennel Club).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "date",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "post_only",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "PDF",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/members/{person}/fees": {
            "get": {
                "summary": "Beitragskonto eines Mitglieds",
                "description": "Beitragsart, Sollstellungen, Zahlungen, Mandate (IBAN maskiert).\nSeitenrecht `READ:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "person",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Beitragskonto eines Mitglieds",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/members/{person}/fee-type": {
            "put": {
                "summary": "Beitragsart eines Mitglieds",
                "description": "\nSeitenrecht `WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "person",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "type"
                                ],
                                "properties": {
                                    "type": {
                                        "type": "integer"
                                    },
                                    "valid_from": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Beitragsart eines Mitglieds",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/members/{person}/sepa-mandates": {
            "post": {
                "summary": "SEPA-Mandat erfassen",
                "description": "IBAN verschlüsselt gespeichert, nie im Klartext zurück.\nSeitenrecht `WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "person",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "account_holder",
                                    "iban",
                                    "signed_on"
                                ],
                                "properties": {
                                    "account_holder": {
                                        "type": "string"
                                    },
                                    "iban": {
                                        "type": "string"
                                    },
                                    "bic": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "signed_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "reference": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "SEPA-Mandat erfassen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/sepa-mandates/{mandate}/revoke": {
            "post": {
                "summary": "SEPA-Mandat widerrufen",
                "description": "\nSeitenrecht `WRITE:FEES` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "mandate",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "revoked_on": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "SEPA-Mandat widerrufen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash": {
            "get": {
                "summary": "Kasse eines Jahres",
                "description": "Konten mit Saldo, Buchungen, Kategorien, Jahresabschluss und Prüfung (E89).\nSeitenrecht `READ:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "account",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Kasse eines Jahres",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/accounts": {
            "post": {
                "summary": "Kassenkonto anlegen",
                "description": "Anfangsbestand in Cent.\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "kind",
                                    "opening_cents",
                                    "opened_on"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "kind": {
                                        "type": "string",
                                        "enum": [
                                            "CASH",
                                            "BANK",
                                            "OTHER"
                                        ]
                                    },
                                    "opening_cents": {
                                        "type": "integer"
                                    },
                                    "opened_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Kassenkonto anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/accounts/{account}": {
            "put": {
                "summary": "Kassenkonto ändern",
                "description": "\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "account",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "kind",
                                    "opening_cents",
                                    "opened_on"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "kind": {
                                        "type": "string",
                                        "enum": [
                                            "CASH",
                                            "BANK",
                                            "OTHER"
                                        ]
                                    },
                                    "opening_cents": {
                                        "type": "integer"
                                    },
                                    "opened_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Kassenkonto ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/categories": {
            "post": {
                "summary": "Kategorie anlegen",
                "description": "\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "code",
                                    "name"
                                ],
                                "properties": {
                                    "code": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "direction": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "enum": [
                                            "INCOME",
                                            "EXPENSE",
                                            null
                                        ]
                                    },
                                    "active": {
                                        "type": "boolean"
                                    },
                                    "tax_sphere": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "enum": [
                                            "IDEAL",
                                            "ASSET_MANAGEMENT",
                                            "PURPOSE_OPERATION",
                                            "BUSINESS",
                                            null
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Kategorie anlegen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/categories/{category}": {
            "put": {
                "summary": "Kategorie ändern",
                "description": "\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "category",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name"
                                ],
                                "properties": {
                                    "code": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "name": {
                                        "type": "object",
                                        "required": [
                                            "de"
                                        ],
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "direction": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "enum": [
                                            "INCOME",
                                            "EXPENSE",
                                            null
                                        ]
                                    },
                                    "active": {
                                        "type": "boolean"
                                    },
                                    "tax_sphere": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "enum": [
                                            "IDEAL",
                                            "ASSET_MANAGEMENT",
                                            "PURPOSE_OPERATION",
                                            "BUSINESS",
                                            null
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Kategorie ändern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/entries": {
            "post": {
                "summary": "Buchen",
                "description": "Unveränderliche Buchung mit Belegnummer JJJJ-NNNN, Beleg optional (multipart).\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "account",
                                    "direction",
                                    "amount_cents",
                                    "booked_on",
                                    "category",
                                    "text"
                                ],
                                "properties": {
                                    "account": {
                                        "type": "integer"
                                    },
                                    "direction": {
                                        "type": "string",
                                        "enum": [
                                            "INCOME",
                                            "EXPENSE"
                                        ]
                                    },
                                    "amount_cents": {
                                        "type": "integer"
                                    },
                                    "booked_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "category": {
                                        "type": "integer"
                                    },
                                    "text": {
                                        "type": "string"
                                    },
                                    "counterparty": {
                                        "type": "string"
                                    },
                                    "cost_center": {
                                        "type": "integer"
                                    },
                                    "receipt": {
                                        "type": "string",
                                        "format": "binary"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Buchen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/entries/{entry}/receipt": {
            "post": {
                "summary": "Beleg nachreichen",
                "description": "PDF oder Bild bis 10 MB.\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "entry",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "receipt"
                                ],
                                "properties": {
                                    "receipt": {
                                        "type": "string",
                                        "format": "binary"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Beleg nachreichen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "get": {
                "summary": "Beleg einer Buchung",
                "description": "Abruf im Audit Log.\nSeitenrecht `READ:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "entry",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Beleg einer Buchung",
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/entries/{entry}/reverse": {
            "post": {
                "summary": "Buchung stornieren",
                "description": "Gegenbuchung mit Begründung.\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "entry",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "reason"
                                ],
                                "properties": {
                                    "reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Buchung stornieren",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/transfers": {
            "post": {
                "summary": "Umbuchen",
                "description": "Zwischen zwei Konten der Stelle.\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "from",
                                    "to",
                                    "amount_cents",
                                    "booked_on",
                                    "text"
                                ],
                                "properties": {
                                    "from": {
                                        "type": "integer"
                                    },
                                    "to": {
                                        "type": "integer"
                                    },
                                    "amount_cents": {
                                        "type": "integer"
                                    },
                                    "booked_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "text": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Umbuchen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/statements/preview": {
            "post": {
                "summary": "Kontoauszug einlesen (Vorschau)",
                "description": "Bankabgleich (E340): CAMT.053 oder CSV der Bank für ein Konto der Kasse. Liefert je Umsatz einen Vorschlag\n(`fee`, `collection`, `return`, `entry`) und ein `token` für `apply`; schon eingelesene Umsätze stehen mit `done`.\nDie Datei wird nicht gespeichert, die Vorschau gilt 60 Minuten. IBANs der Gegenseite nur maskiert.\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E340).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "account",
                                    "file"
                                ],
                                "properties": {
                                    "account": {
                                        "type": "integer"
                                    },
                                    "file": {
                                        "type": "string",
                                        "format": "binary"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Vorschau mit Vorschlägen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "token",
                                                "account",
                                                "lines",
                                                "open_charges",
                                                "collections",
                                                "summary"
                                            ],
                                            "properties": {
                                                "token": {
                                                    "type": "string"
                                                },
                                                "account": {
                                                    "type": "object"
                                                },
                                                "lines": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "index",
                                                            "date",
                                                            "amount_cents",
                                                            "purpose",
                                                            "done",
                                                            "suggestion"
                                                        ],
                                                        "properties": {
                                                            "index": {
                                                                "type": "integer"
                                                            },
                                                            "date": {
                                                                "type": "string",
                                                                "format": "date"
                                                            },
                                                            "amount_cents": {
                                                                "type": "integer"
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "iban": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "purpose": {
                                                                "type": "string"
                                                            },
                                                            "end_to_end": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "done": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "enum": [
                                                                    "FEE_PAYMENT",
                                                                    "COLLECTION",
                                                                    "RETURN",
                                                                    "ENTRY",
                                                                    "IGNORED",
                                                                    null
                                                                ]
                                                            },
                                                            "suggestion": {
                                                                "type": "object",
                                                                "required": [
                                                                    "action",
                                                                    "sure"
                                                                ],
                                                                "properties": {
                                                                    "action": {
                                                                        "type": "string",
                                                                        "enum": [
                                                                            "fee",
                                                                            "collection",
                                                                            "return",
                                                                            "entry"
                                                                        ]
                                                                    },
                                                                    "sure": {
                                                                        "type": "boolean"
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                "open_charges": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "collections": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "summary": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/statements/apply": {
            "post": {
                "summary": "Kontoauszug buchen",
                "description": "Bankabgleich (E340): Entscheidungen je Umsatz der Vorschau (`index`) – `fee` mit `parts` {Beitrags-ID: Cent}\n(ein Rest geht als Überzahlung in `category`, sonst Sonstiges), `collection` mit `collection`, `return` (Zahlung\nstorniert, Gebühr in `category`, sonst Bankgebühren), `entry` mit `category`, `text`, `remember` (Kategorie für die\nGegenseite merken), `ignore`. Jeder Umsatz wird je Konto nur einmal gebucht; Fehler einzelner Umsätze stehen in `errors`.\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E340).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "token",
                                    "decisions"
                                ],
                                "properties": {
                                    "token": {
                                        "type": "string"
                                    },
                                    "decisions": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "required": [
                                                "index",
                                                "action"
                                            ],
                                            "properties": {
                                                "index": {
                                                    "type": "integer"
                                                },
                                                "action": {
                                                    "type": "string",
                                                    "enum": [
                                                        "fee",
                                                        "collection",
                                                        "return",
                                                        "entry",
                                                        "ignore"
                                                    ]
                                                },
                                                "parts": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                        "type": "integer"
                                                    }
                                                },
                                                "collection": {
                                                    "type": "integer"
                                                },
                                                "payment": {
                                                    "type": "integer"
                                                },
                                                "category": {
                                                    "type": "integer"
                                                },
                                                "text": {
                                                    "type": "string"
                                                },
                                                "remember": {
                                                    "type": "boolean"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Ergebnis",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "booked",
                                                "skipped",
                                                "errors"
                                            ],
                                            "properties": {
                                                "booked": {
                                                    "type": "integer"
                                                },
                                                "skipped": {
                                                    "type": "integer"
                                                },
                                                "errors": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "index",
                                                            "message"
                                                        ],
                                                        "properties": {
                                                            "index": {
                                                                "type": "integer"
                                                            },
                                                            "message": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/years/{year}/close": {
            "post": {
                "summary": "Jahresabschluss",
                "description": "Mit `confirm: true`; danach keine Buchungen im Jahr.\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "confirm"
                                ],
                                "properties": {
                                    "confirm": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Jahresabschluss",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/years/{year}/audit": {
            "post": {
                "summary": "Kassenprüfung",
                "description": "Vier-Augen-Prinzip: nicht durch den, der gebucht hat (APPROVE CASH).\nSeitenrecht `APPROVE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "result"
                                ],
                                "properties": {
                                    "result": {
                                        "type": "string",
                                        "enum": [
                                            "passed",
                                            "objections"
                                        ]
                                    },
                                    "note": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Kassenprüfung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/years/{year}/csv": {
            "get": {
                "summary": "Kassenbuch als CSV",
                "description": "\nSeitenrecht `READ:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Kassenbuch als CSV",
                        "content": {
                            "text/csv": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/donation-receipts": {
            "get": {
                "summary": "Zuwendungsbestätigungen",
                "description": "Ausgestellte Bestätigungen und offene Zuwendungen eines Jahres (E287); `can_write`.\nSeitenrecht `READ:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Zuwendungsbestätigungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            },
            "post": {
                "summary": "Zuwendungsbestätigung ausstellen",
                "description": "Einzeln oder gesammelt aus Buchungen der Kategorie Spenden; Druckansicht als Seite des Core.\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "entries"
                                ],
                                "properties": {
                                    "person": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "donor_name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "donor_address": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "entries": {
                                        "type": "array",
                                        "items": {
                                            "type": "integer"
                                        }
                                    },
                                    "waiver": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Zuwendungsbestätigung ausstellen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/donation-receipts/settings": {
            "put": {
                "summary": "Steuerangaben der Kasse",
                "description": "Freistellungsbescheid oder Feststellung, Finanzamt, Steuernummer. Antwort wie GET.\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "purpose",
                                    "notice_kind",
                                    "tax_office",
                                    "tax_number",
                                    "notice_date",
                                    "place"
                                ],
                                "properties": {
                                    "purpose": {
                                        "type": "string"
                                    },
                                    "notice_kind": {
                                        "type": "string",
                                        "enum": [
                                            "EXEMPTION",
                                            "ASSESSMENT"
                                        ]
                                    },
                                    "tax_office": {
                                        "type": "string"
                                    },
                                    "tax_number": {
                                        "type": "string"
                                    },
                                    "notice_date": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "assessment_period": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "place": {
                                        "type": "string"
                                    },
                                    "signatory": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Steuerangaben der Kasse",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/donation-receipts/{receipt}": {
            "get": {
                "summary": "Zuwendungsbestätigung",
                "description": "Mit Betrag in Worten.\nSeitenrecht `READ:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "receipt",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Zuwendungsbestätigung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/donation-receipts/{receipt}/cancel": {
            "post": {
                "summary": "Bestätigung widerrufen",
                "description": "Gibt die Buchungen wieder frei.\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "receipt",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "reason"
                                ],
                                "properties": {
                                    "reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Bestätigung widerrufen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/budget": {
            "get": {
                "summary": "Haushaltsplan",
                "description": "Plan gegen Ist eines Jahres je Kategorie, Kostenstelle und steuerlichem Bereich (ideell, Vermögensverwaltung,\nZweckbetrieb, wirtschaftlicher Geschäftsbetrieb mit Hinweis über der Besteuerungsgrenze) – optional nur eine\nKostenstelle (E349).\nSeitenrecht `READ:CASH` im Arbeitskontext (CANIDEX Kennel Club, E349).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "cost_center",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Plan und Ist",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "year",
                                                "can_manage",
                                                "categories",
                                                "cost_centers",
                                                "spheres",
                                                "budget",
                                                "totals"
                                            ],
                                            "properties": {
                                                "year": {
                                                    "type": "integer"
                                                },
                                                "can_manage": {
                                                    "type": "boolean"
                                                },
                                                "categories": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "cost_centers": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "spheres": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "label",
                                                            "income",
                                                            "expense",
                                                            "result",
                                                            "over_limit"
                                                        ],
                                                        "properties": {
                                                            "sphere": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "income": {
                                                                "type": "integer"
                                                            },
                                                            "expense": {
                                                                "type": "integer"
                                                            },
                                                            "result": {
                                                                "type": "integer"
                                                            },
                                                            "over_limit": {
                                                                "type": "boolean"
                                                            }
                                                        }
                                                    }
                                                },
                                                "budget": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                },
                                                "totals": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            },
            "put": {
                "summary": "Haushaltsplan speichern",
                "description": "Ersetzt den Plan eines Jahres: Zeilen mit Kategorie, optional Kostenstelle, geplanten Einnahmen und Ausgaben in\nCent (E349).\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E349).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "year",
                                    "lines"
                                ],
                                "properties": {
                                    "year": {
                                        "type": "integer"
                                    },
                                    "lines": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "required": [
                                                "category",
                                                "income_cents",
                                                "expense_cents"
                                            ],
                                            "properties": {
                                                "category": {
                                                    "type": "integer"
                                                },
                                                "cost_center": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ]
                                                },
                                                "income_cents": {
                                                    "type": "integer"
                                                },
                                                "expense_cents": {
                                                    "type": "integer"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/cost-centers": {
            "post": {
                "summary": "Kostenstelle anlegen",
                "description": "Code (bis 20 Zeichen, geht als KOST1 in den DATEV-Export) und Name (E349).\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E349).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "code",
                                    "name"
                                ],
                                "properties": {
                                    "code": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Angelegt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/cost-centers/{center}": {
            "put": {
                "summary": "Kostenstelle ändern",
                "description": "Wie Anlegen; stillgelegte Kostenstellen lassen sich nicht mehr buchen (E349).\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E349).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "center",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "code",
                                    "name"
                                ],
                                "properties": {
                                    "code": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "active": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/datev": {
            "get": {
                "summary": "DATEV-Angaben",
                "description": "Berater-/Mandantennummer, Sachkonten der Kassenkonten und Kategorien (E288).\nSeitenrecht `READ:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "DATEV-Angaben",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/datev/settings": {
            "put": {
                "summary": "DATEV-Angaben speichern",
                "description": "Antwort wie GET.\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "consultant",
                                    "client",
                                    "length"
                                ],
                                "properties": {
                                    "consultant": {
                                        "type": "integer"
                                    },
                                    "client": {
                                        "type": "integer"
                                    },
                                    "length": {
                                        "type": "integer"
                                    },
                                    "chart": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "DATEV-Angaben speichern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/datev/accounts": {
            "put": {
                "summary": "DATEV-Sachkonten speichern",
                "description": "Je Kassenkonto und Kategorie (ID → Sachkonto). Antwort wie GET.\nSeitenrecht `WRITE:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "accounts": {
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "categories": {
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "DATEV-Sachkonten speichern",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/datev/export": {
            "get": {
                "summary": "DATEV-Buchungsstapel",
                "description": "EXTF 700, Windows-1252.\nSeitenrecht `READ:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "DATEV-Buchungsstapel",
                        "content": {
                            "text/csv": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/cash/datev/receipts": {
            "get": {
                "summary": "Belege des Zeitraums als ZIP",
                "description": "Ohne Belege 422.\nSeitenrecht `READ:CASH` im Arbeitskontext (CANIDEX Kennel Club, E333).\n",
                "security": [
                    {
                        "oauth2": [
                            "finance:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "$ref": "#/components/schemas/PublicId"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Belege des Zeitraums als ZIP",
                        "content": {
                            "application/zip": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/invoices": {
            "get": {
                "summary": "Rechnungen einer Organisation",
                "description": "Rechnungen und Gutschriften zu Zahlungen eines Vereins bzw. Verbands (E238), neueste zuerst. Nur mit Benutzer-Token für Konten, die dort das Abo lesen dürfen (wie „Abo & Abrechnung“); sonst 404.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXO-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Rechnungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Invoice"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/organizations/{organization}/invoices/{invoice}/pdf": {
            "get": {
                "summary": "PDF einer Rechnung der Organisation",
                "description": "PDF einer ausgestellten Rechnung oder Gutschrift der Organisation (E238). Ohne Leserecht am Abo, fremd oder noch nicht ausgestellt → 404.",
                "security": [
                    {
                        "oauth2": [
                            "profile"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXO-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "invoice",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "PDF",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/title-types": {
            "get": {
                "summary": "Titelarten",
                "description": "Stammdaten für den Titelkatalog einer Stelle (E39), z. B. CHAMPION, SHOW_AWARD – Auswahl beim Anlegen eines Titels (CANIDEX Kennel Club, E329).",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Titelarten",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "code",
                                                    "label",
                                                    "active"
                                                ],
                                                "properties": {
                                                    "code": {
                                                        "type": "string"
                                                    },
                                                    "label": {
                                                        "type": "string"
                                                    },
                                                    "active": {
                                                        "type": "boolean"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/titles": {
            "get": {
                "summary": "Titelkatalog",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "authority",
                        "in": "query",
                        "description": "Öffentliche ID der vergebenden Stelle",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Titel",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Title"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/events": {
            "get": {
                "summary": "Veranstaltungen",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "organization",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "description": "Art; eine Grundart umfasst ihre Unterarten (E185)",
                        "schema": {
                            "type": "string",
                            "example": "HUNTING_TRIAL"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "until",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 500,
                            "default": 25
                        }
                    },
                    {
                        "name": "changed_since",
                        "in": "query",
                        "description": "Nur seit dem Zeitpunkt geänderte Termine, auch abgesagte (E303, T163) – für den Abgleich gespeicherter Suchen",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "near",
                        "in": "query",
                        "description": "Umkreissuche: Mittelpunkt „Breite,Länge“ (E303, T164); Termine ohne Koordinaten fallen heraus, jede Zeile bekommt `distance_km`",
                        "schema": {
                            "type": "string",
                            "example": "48.137,11.576"
                        }
                    },
                    {
                        "name": "radius_km",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 1000,
                            "default": 50
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "description": "distance nur mit near",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "date",
                                "distance"
                            ],
                            "default": "date"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Veranstaltungen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data",
                                        "meta"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Event"
                                            }
                                        },
                                        "meta": {
                                            "type": "object",
                                            "required": [
                                                "current_page",
                                                "per_page",
                                                "total",
                                                "last_page"
                                            ],
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer"
                                                },
                                                "per_page": {
                                                    "type": "integer"
                                                },
                                                "total": {
                                                    "type": "integer"
                                                },
                                                "last_page": {
                                                    "type": "integer"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/events/{event}": {
            "get": {
                "summary": "Veranstaltung",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXE-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Veranstaltung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Event"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/events/{event}/results": {
            "get": {
                "summary": "Ergebnisse einer Veranstaltung (gefiltert)",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXE-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ergebnisse",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EventResultRow"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/events/{event}/results/export": {
            "get": {
                "summary": "Ergebnisse einer Veranstaltung als CSV oder Excel",
                "description": "Allgemeines Format für die Übergabe an Verbände (E306, T175): eine Zeile je Meldung (Hund, CX-ID, Rasse, Geschlecht,\nGeburtsdatum, Zuchtbuchnummer, Chip, Klasse, Hundeführer, Richter der Klasse, Stand) und eine Spalte je Ergebnisart;\nnur Ergebnisse, die der Aufrufer sehen darf. CSV mit Semikolon und UTF-8-BOM.\n",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXE-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "format",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "csv",
                                "xlsx"
                            ],
                            "default": "csv"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Datei",
                        "content": {
                            "text/csv": {
                                "schema": {
                                    "type": "string"
                                }
                            },
                            "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/results": {
            "get": {
                "summary": "Ergebnisse suchen",
                "description": "Ergebnissuche über alle Veranstaltungen. Suchbegriff `q` durchsucht Hunde- und Veranstaltungsnamen; ohne Suchbegriff\nneueste zuerst. Sichtbar wie in der Hundeakte: alle Ergebnisse der eigenen Authority, sonst nur bestätigte und\nöffentliche bzw. per Veröffentlichungsregel freigegebene.\n",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "dog",
                        "in": "query",
                        "description": "Öffentliche ID des Hundes",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "event",
                        "in": "query",
                        "description": "Öffentliche ID der Veranstaltung",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "breed",
                        "in": "query",
                        "description": "Öffentliche ID der Rasse",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "description": "Ergebnisart",
                        "schema": {
                            "type": "string",
                            "example": "GRADING"
                        }
                    },
                    {
                        "name": "event_type",
                        "in": "query",
                        "description": "Veranstaltungsart (E303, T166); eine Grundart umfasst ihre Unterarten",
                        "schema": {
                            "type": "string",
                            "example": "AGILITY"
                        }
                    },
                    {
                        "name": "value",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "example": "EXCELLENT"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "until",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 25
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Treffer",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data",
                                        "meta"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/EventResultRow"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "event"
                                                        ],
                                                        "properties": {
                                                            "event": {
                                                                "oneOf": [
                                                                    {
                                                                        "type": "null"
                                                                    },
                                                                    {
                                                                        "type": "object",
                                                                        "required": [
                                                                            "id",
                                                                            "name",
                                                                            "starts_at"
                                                                        ],
                                                                        "properties": {
                                                                            "id": {
                                                                                "$ref": "#/components/schemas/PublicId"
                                                                            },
                                                                            "name": {
                                                                                "type": "string"
                                                                            },
                                                                            "starts_at": {
                                                                                "type": "string",
                                                                                "format": "date-time"
                                                                            }
                                                                        }
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    }
                                                ]
                                            }
                                        },
                                        "meta": {
                                            "$ref": "#/components/schemas/PageMeta"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/kennels": {
            "get": {
                "summary": "Zwinger suchen",
                "description": "Geschützte (und erloschene) Zwinger sind öffentlich. Laufende und abgelehnte Anträge sehen nur die beteiligten\nOrganisationen (Zuchtverein, nationaler Verband, FCI), die Inhaber und der Plattformbetrieb.\nSuche ignoriert Groß-/Kleinschreibung und Akzente.\n",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "name",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "SUBMITTED_TO_CLUB",
                                "SUBMITTED_TO_NATIONAL",
                                "SUBMITTED_TO_FCI",
                                "PROTECTED",
                                "REJECTED",
                                "EXPIRED"
                            ]
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 25
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Zwinger",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data",
                                        "meta"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/KennelSummary"
                                            }
                                        },
                                        "meta": {
                                            "$ref": "#/components/schemas/PageMeta"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/kennels/{kennel}": {
            "get": {
                "summary": "Zwinger lesen",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "kennel",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXK-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Zwinger",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/KennelProfile"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/kennels/{kennel}/decision": {
            "post": {
                "summary": "Über den Zwingerschutz entscheiden",
                "description": "Nur die Stelle, bei der der Antrag liegt (APPROVE auf REGISTRATIONS für diese Organisation):\n`FORWARD` gibt weiter (Zuchtverein → nationaler Verband → FCI, `organization` = nächste Stelle),\n`PROTECT` erteilt den Schutz (nur FCI, mit `fci_number` und `protected_at`), `REJECT` lehnt mit `reason` ab.\n",
                "security": [
                    {
                        "oauth2": [
                            "proposals:review"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "kennel",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXK-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "decision"
                                ],
                                "properties": {
                                    "decision": {
                                        "type": "string",
                                        "enum": [
                                            "FORWARD",
                                            "PROTECT",
                                            "REJECT",
                                            "STRIKE_NAME"
                                        ],
                                        "description": "STRIKE_NAME streicht einen belegten Namensvorschlag (position, reason; E119)"
                                    },
                                    "position": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 3,
                                        "description": "Namensvorschlag (STRIKE_NAME)"
                                    },
                                    "organization": {
                                        "type": "string",
                                        "description": "Öffentliche ID der nächsten Stelle (FORWARD)"
                                    },
                                    "fci_number": {
                                        "type": "string"
                                    },
                                    "protected_at": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Neuer Stand",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/KennelProfile"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/kennels/{kennel}/litters": {
            "get": {
                "summary": "Würfe eines Zwingers",
                "description": "Abgenommene Würfe sind öffentlich; laufende sehen nur der zuständige Verein und die Zwinger-Inhaber.",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "kennel",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXK-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Würfe",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Litter"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/litters/{litter}": {
            "get": {
                "summary": "Wurf",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "litter",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXW-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Wurf",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Litter"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/litters/{litter}/inspection": {
            "post": {
                "summary": "Wurfabnahme erfassen",
                "description": "Durch den Zuchtwart des zuständigen Vereins (APPROVE auf REGISTRATIONS), erst nach angemeldeter Abnahme\n(`LITTER_INSPECTION_REQUEST`) oder mit `register_inspection` als Direkterfassung. Für jeden Welpen ein Ergebnis\nund eine Chipnummer (15 Ziffern, eindeutig); danach sind Wurf und Abstammung bestätigt, und die abgenommenen\nWelpen stehen im Zuchtbuch `registry` mit einer Nummer nach dessen Nummernschema (E68).\n",
                "security": [
                    {
                        "oauth2": [
                            "proposals:review"
                        ]
                    },
                    {
                        "oauth2": [
                            "breeding:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "litter",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXW-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "inspected_on",
                                    "inspector",
                                    "puppies"
                                ],
                                "properties": {
                                    "inspected_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "inspector": {
                                        "type": "string",
                                        "description": "Öffentliche ID der Person (Zuchtwart)"
                                    },
                                    "notes": {
                                        "type": "string"
                                    },
                                    "protocol_document": {
                                        "type": "string",
                                        "description": "Öffentliche ID des Abnahmeprotokolls (CXF)"
                                    },
                                    "register_inspection": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Direkterfassung: der Verein meldet die Abnahme dabei selbst an (Wurf im Stand REPORTED)"
                                    },
                                    "registry": {
                                        "type": "string",
                                        "description": "Kürzel des Zuchtbuchs des Vereins; ohne Angabe das zuletzt für die Rasse benutzte bzw. das erste"
                                    },
                                    "puppies": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "required": [
                                                "dog",
                                                "accepted",
                                                "microchip"
                                            ],
                                            "properties": {
                                                "dog": {
                                                    "type": "string"
                                                },
                                                "accepted": {
                                                    "type": "boolean"
                                                },
                                                "microchip": {
                                                    "type": "string",
                                                    "description": "Chipnummer, 15 Ziffern (ISO 11784/11785)"
                                                },
                                                "remarks": {
                                                    "type": "string"
                                                },
                                                "coat_color": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Farbe als Code aus dem Katalog des Vereins (E114); Pflicht, sobald der Verein für die Rasse Farben führt. Ohne Feld bleibt die Angabe der Wurfmeldung."
                                                },
                                                "coat_marking": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Farbzeichnung als Code aus dem Katalog des Vereins (E114), null = keine"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Abgenommener Wurf",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Litter"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/breeding/options": {
            "get": {
                "summary": "Auswahllisten der Wurfmeldung",
                "description": "Markierungsfarben (mit Farbwert) und Geburtsarten für Wurfmeldung und Welpentagebuch (E64, E70).",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Auswahllisten",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "colors",
                                                "birth_types"
                                            ],
                                            "properties": {
                                                "colors": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "code",
                                                            "label"
                                                        ],
                                                        "properties": {
                                                            "code": {
                                                                "type": "string"
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "hex": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                },
                                                "birth_types": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "required": [
                                                            "code",
                                                            "label"
                                                        ],
                                                        "properties": {
                                                            "code": {
                                                                "type": "string"
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "hex": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/breeding/mating-analysis": {
            "get": {
                "summary": "Verpaarungsanalyse",
                "description": "COI je Tiefe, CR, ALC, PCI, Founder, Ahnen, Geschwister und Population der Rasse für ein Paar (E84).",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "sire",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "dam",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "generations",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 4,
                            "maximum": 10
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Analyse",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "pair",
                                                "analysis",
                                                "population"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/breeding/planner": {
            "get": {
                "summary": "Testverpaarung planen",
                "description": "Gewählte Hunde, Vereine, die die Rasse betreuen, Vorbelegung „Prüfen nach“ (eigener Zwinger, sonst Zuchtbuch der\nHündin bzw. des Rüden, sonst der einzige Verein; `club=keine` ohne Stelle), Zwinger für den Übergang in den Deckantrag\n(`mating_kennel`, nur bei eigener Hündin) und `locked` ohne Abo „Testverpaarung“ (E125).\n",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "sire",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "dam",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "club",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Planung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "locked",
                                                "sire",
                                                "dam",
                                                "clubs",
                                                "club",
                                                "mating_kennel",
                                                "error"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/breeding/mating-candidates": {
            "get": {
                "summary": "Kandidaten für eine Testverpaarung",
                "description": "Hunde des anderen Geschlechts und der Rasse des Partners mit Ampeln, Paarwerten und COI, seitenweise (E125). Filter\nals Formularwerte `f[…]` der Hundesuche (E134) sowie `f[deceased]`, `f[banned]`, `f[coi_max]`, `f[sort]` (älteste\nzuerst, `youngest`, `name`, Rangliste `bv:<ID>`/`cp:<Code>`). `selected` wird angeheftet. Abo „Testverpaarung“, sonst 422.\n",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "partner",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "club",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "f",
                        "in": "query",
                        "style": "deepObject",
                        "explode": true,
                        "schema": {
                            "type": "object"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "generations",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 3,
                            "maximum": 10
                        }
                    },
                    {
                        "name": "selected",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Kandidaten",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "items",
                                                "pinned",
                                                "total",
                                                "page",
                                                "pages",
                                                "coi_limited",
                                                "generations"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/breeding/mating-candidates/options": {
            "get": {
                "summary": "Auswahllisten der Kandidatenfilter",
                "description": "Zuchtbücher mit Hunden der Rasse, Befunde, Gentests, Länder, Ergebnisse, Titel, Farben, Zuchtwerte und eigene Hundelisten für die Rasse des Partners und die Stelle aus „Prüfen nach“ (E134).",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "partner",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "club",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Auswahllisten",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "registries",
                                                "health",
                                                "markers",
                                                "countries",
                                                "results",
                                                "titles",
                                                "coat_colors",
                                                "coat_markings",
                                                "traits",
                                                "lists"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/breeding/exception-requirements": {
            "get": {
                "summary": "Nötige Ausnahmen übergeordneter Stellen",
                "description": "Welche Stellen eine Ausnahme erteilen müssten, damit ein Deckantrag für einen eigenen Zwinger genehmigt werden kann (E85) – nur zur Information; fremder Zwinger 404.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "kennel",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "sire",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "dam",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ausnahmen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "required": [
                                                    "authority",
                                                    "name",
                                                    "items",
                                                    "status",
                                                    "proposal"
                                                ]
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/matings/{mating}/coat-options": {
            "get": {
                "summary": "Farben für die Wurfmeldung",
                "description": "Farben und Farbzeichnungen der zuständigen Stelle für die Rasse der Hündin (E114) – nur für Verpaarungen eigener Zwinger, sonst 404.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "mating",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXM-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Farben",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "color",
                                                "marking"
                                            ],
                                            "properties": {
                                                "color": {
                                                    "type": [
                                                        "object",
                                                        "array"
                                                    ]
                                                },
                                                "marking": {
                                                    "type": [
                                                        "object",
                                                        "array"
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/dogs/compare": {
            "get": {
                "summary": "Rüde und Hündin im Vergleich",
                "description": "Hundeakte beider Partner in API-Form, nur was der Aufrufer sehen darf, mit Klartexten, Eltern, Nachkommen und Zuchtwerten (E132, A‑ZW2).",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "sire",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "dam",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Vergleich",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "sire",
                                                "dam"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/stud-dogs": {
            "get": {
                "summary": "Rüdengalerie",
                "description": "Aktive Zuchtrüden je Verein und Rasse (E136) mit Auswahllisten (Rassen, Vereine, Landesgruppen); ohne Wahl die Rasse der eigenen Hunde und der Verein wie „Prüfen nach“.",
                "security": [
                    {
                        "oauth2": [
                            "breeder:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "breed",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "club",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "section",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "pattern": "^CX[A-Z]-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Galerie",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "required": [
                                                "breeds",
                                                "breed",
                                                "clubs",
                                                "club",
                                                "sections",
                                                "section",
                                                "result"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/rule-catalog": {
            "get": {
                "summary": "Katalog der Regeltypen",
                "description": "Regeltypen mit Parametern und Texten (E58) – für lesbare Regeln in Deckprüfung und Hundeakte.",
                "security": [
                    {
                        "oauth2": [
                            "reference:read"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Katalog",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": [
                                                "object",
                                                "array"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    }
                }
            }
        },
        "/breeding/mating-check": {
            "get": {
                "summary": "Entscheidungsgrundlage für einen Deckantrag",
                "description": "Zuchtzulassung von Rüde und Hündin nach dem Regelwerk des Vereins und Inzuchtkoeffizient der Welpen. Statt `club`\nnimmt `kennel` einen eigenen Zwinger (Benutzer-Token, heutiger Inhaber, sonst 404): geprüft wird dann nach dem Verein\ndes Zwingers mit dem Zwinger als Kontext (T122). `planning=1` prüft in der Testverpaarung und verlangt das Abo\n„Testverpaarung“ (E125, sonst 422).\n",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    },
                    {
                        "oauth2": [
                            "proposals:review"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "sire",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "dam",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "club",
                        "in": "query",
                        "description": "Pflicht ohne `kennel`",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "kennel",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "planning",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ergebnis",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "sire",
                                                        "dam"
                                                    ],
                                                    "properties": {
                                                        "sire": {
                                                            "type": "string"
                                                        },
                                                        "dam": {
                                                            "type": "string"
                                                        }
                                                    }
                                                },
                                                {
                                                    "$ref": "#/components/schemas/MatingCheck"
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/matings": {
            "post": {
                "summary": "Deckung direkt genehmigen (Verein)",
                "description": "Direkterfassung durch den zuständigen Verein (APPROVE auf REGISTRATIONS für `club`), ohne Vorschlag.\nZuchtregeln und Inzuchtkoeffizient werden als Entscheidungsgrundlage gespeichert; sind Regeln nicht erfüllt,\nbraucht es `reason` (Ausnahmegenehmigung). Die Genehmigung gilt befristet für einen Wurf.\n",
                "security": [
                    {
                        "oauth2": [
                            "breeding:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "sire",
                                    "dam",
                                    "kennel",
                                    "club"
                                ],
                                "properties": {
                                    "sire": {
                                        "type": "string"
                                    },
                                    "dam": {
                                        "type": "string"
                                    },
                                    "kennel": {
                                        "type": "string"
                                    },
                                    "club": {
                                        "type": "string"
                                    },
                                    "reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Genehmigte Verpaarung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Mating"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/matings/{mating}/mating-report": {
            "post": {
                "summary": "Deckmeldung (Verein)",
                "description": "Nur nach der Genehmigung und innerhalb ihrer Gültigkeit.",
                "security": [
                    {
                        "oauth2": [
                            "breeding:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "mating",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXM-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "first_mated_on"
                                ],
                                "properties": {
                                    "first_mated_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "last_mated_on": {
                                        "type": "string",
                                        "format": "date",
                                        "description": "darf geplant sein (Zukunft), höchstens 7 Tage nach first_mated_on"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Verpaarung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Mating"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/matings/{mating}/litter": {
            "post": {
                "summary": "Wurfmeldung (Verein)",
                "description": "Nur zu einer gemeldeten Deckung; Tragzeit 56–70 Tage, sonst mit `date_reason`; Zwinger geschützt.\nLegt je Welpe eine Hundeakte an; der Wurfbuchstabe wird fortlaufend je Zwinger vergeben.\n",
                "security": [
                    {
                        "oauth2": [
                            "breeding:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "mating",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXM-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "whelped_on",
                                    "puppies"
                                ],
                                "properties": {
                                    "whelped_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "puppies": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "required": [
                                                "name",
                                                "sex"
                                            ],
                                            "properties": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "sex": {
                                                    "type": "string",
                                                    "enum": [
                                                        "MALE",
                                                        "FEMALE"
                                                    ]
                                                },
                                                "birth_type": {
                                                    "type": "string",
                                                    "enum": [
                                                        "NATURAL",
                                                        "ASSISTED",
                                                        "CESAREAN"
                                                    ],
                                                    "description": "Geburtsart (E70), sichtbar für Zwinger-Inhaber und Verein"
                                                },
                                                "born_at": {
                                                    "type": "string",
                                                    "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$",
                                                    "description": "Uhrzeit am Wurftag; liegt sie in der Reihenfolge vor der des vorigen Welpen, zählt sie zum Folgetag"
                                                },
                                                "birth_order": {
                                                    "type": "integer",
                                                    "minimum": 1,
                                                    "maximum": 30,
                                                    "description": "Platz in der Geburtsreihenfolge"
                                                },
                                                "color": {
                                                    "type": "string",
                                                    "enum": [
                                                        "RED",
                                                        "BLUE",
                                                        "GREEN",
                                                        "YELLOW",
                                                        "PURPLE",
                                                        "ORANGE",
                                                        "PINK",
                                                        "WHITE",
                                                        "BLACK",
                                                        "BROWN",
                                                        "GREY",
                                                        "TURQUOISE"
                                                    ],
                                                    "description": "Markierungsfarbe für das Welpentagebuch (privat)"
                                                },
                                                "coat_color": {
                                                    "type": "string",
                                                    "description": "Farbe als Code aus dem Katalog des Vereins (E114); Pflicht, sobald der Verein für die Rasse Farben führt"
                                                },
                                                "coat_marking": {
                                                    "type": "string",
                                                    "description": "Farbzeichnung als Code aus dem Katalog des Vereins (E114), nur wenn vorhanden"
                                                }
                                            }
                                        }
                                    },
                                    "males_dead": {
                                        "type": "integer",
                                        "minimum": 0
                                    },
                                    "females_dead": {
                                        "type": "integer",
                                        "minimum": 0
                                    },
                                    "date_reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Wurf",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Litter"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/matings/{mating}": {
            "get": {
                "summary": "Genehmigte Verpaarung",
                "description": "Nur für den zuständigen Verein und die Zwinger-Inhaber; sonst 404.",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    },
                    {
                        "oauth2": [
                            "proposals:review"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "mating",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXM-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Verpaarung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Mating"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/proposals": {
            "get": {
                "summary": "Vorschläge (eigene bzw. zur Entscheidung)",
                "description": "Eingereichte Vorschläge des Aufrufers sowie Vorschläge, über die er als zuständige Authority entscheidet.",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    },
                    {
                        "oauth2": [
                            "proposals:review"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "SUBMITTED",
                                "UNDER_REVIEW",
                                "APPROVED",
                                "REJECTED",
                                "WITHDRAWN"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Vorschläge",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Proposal"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    }
                }
            },
            "post": {
                "summary": "Vorschlag einreichen",
                "description": "Erfordert die Berechtigung PROPOSE auf PROPOSALS. Ein Vorschlag verändert keine offiziellen Daten, bis die zuständige\nAuthority ihn genehmigt. Nutzdaten je Art (Verweise über öffentliche IDs):\n\n- `TITLE`: `{\"dog\": \"CXD-…\", \"title\": \"CXL-…\", \"awarded_at\": \"2026-05-01\", \"event_result\": \"CXR-…\", \"evidence_results\": [\"CXR-…\"], \"evidence_titles\": [\"CXT-…\"], \"remarks\": \"…\"}` – Nachweise optional (E63)\n- `HEALTH_TEST`: `{\"dog\": \"CXD-…\", \"type\": \"HD\", \"performed_at\": \"2026-04-02\", \"result\": \"A\", \"laboratory\": \"CXO-…\", \"authority\": \"CXO-…\"}`\n- `OWNER_CHANGE`: `{\"dog\": \"CXD-…\", \"new_owner\": \"CXP-…\", \"date\": \"2026-06-01\", \"co_owners\": [\"CXP-…\"], \"authority\": \"CXO-…\"}`\n- `GENETIC_TEST`: `{\"dog\": \"CXD-…\", \"type\": \"PRA\", \"sample_date\": \"2026-03-10\", \"result\": \"CLEAR\", \"laboratory\": \"CXO-…\", \"authority\": \"CXO-…\"}`\n- `PARENTAGE`: `{\"dog\": \"CXD-…\", \"sire\": \"CXD-…\", \"dam\": \"CXD-…\", \"authority\": \"CXO-…\"}` – Vater und/oder Mutter; ersetzt bei Genehmigung eine bisherige Angabe derselben Rolle\n- `EVENT_RESULT`: `{\"event\": \"CXE-…\", \"dog\": \"CXD-…\", \"class\": \"OPEN\", \"handler\": \"CXP-…\", \"result_type\": \"GRADING\", \"value\": \"EXCELLENT\"}` – zuständig ist der Veranstalter; fehlt die Meldung, wird sie angelegt\n- `KENNEL_APPLICATION`: `{\"names\": [\"vom Walde\", \"aus dem Forst\", \"von der Heide\"], \"name_position\": \"SUFFIX\", \"owners\": [\"CXP-…\"], \"breeds\": [\"CXB-…\"], \"club\": \"CXO-…\", \"address\": {\"street\": \"Waldweg 1\", \"postal_code\": \"12345\", \"city\": \"Waldhausen\", \"country\": \"DE\"}}` – drei Namensvorschläge in Reihenfolge, Züchter als Hauptinhaber zuerst in `owners`, Zwingeranschrift Pflicht (E119); Anmeldung beim Zuchtverein; nach Annahme entsteht der Zwinger (Stand `SUBMITTED_TO_CLUB`), weiter über `POST /kennels/{kennel}/decision`\n- `KENNEL_OWNER_CHANGE`: `{\"kennel\": \"CXK-…\", \"owners\": [\"CXP-…\"], \"date\": \"2026-08-01\"}` – Übergabe/Vererbung, `owners` = Inhaber ab `date`; zuständig ist der Zuchtverein, bei dem der Zwinger angemeldet wurde\n- `MATING_REQUEST`: `{\"sire\": \"CXD-…\", \"dam\": \"CXD-…\", \"kennel\": \"CXK-…\", \"club\": \"CXO-…\"}` – Deckantrag, Genehmigung vor dem Decken; nicht erfüllte Zuchtregeln erfordern bei der Genehmigung eine Begründung (`reason`)\n- `MATING_REPORT`: `{\"mating\": \"CXM-…\", \"first_mated_on\": \"2026-03-01\", \"last_mated_on\": \"2026-03-03\"}` – nur innerhalb der Genehmigung\n- `GENETIC_TEST` mit Panel: `{\"dog\": \"CXD-…\", \"type\": \"PRA\", \"markers\": [{\"marker\": \"PRCD_PRA\", \"genotype\": \"N/PRA\"}], \"authority\": \"CXO-…\"}` – Genotyp je Marker; ohne `result` gilt die schlechteste Einstufung\n- `RULE_EXCEPTION` – Ausnahme von Regeln bzw. Zuchtsperren einer übergeordneten Stelle für ein Paar (E85): `sire`, `dam`, `club`, `authority` (erteilende Stelle), `items`, `reason`\n- `DOG_EDIT` – Änderung einer Hundeakte mit Nachweis (T84): `{\"dog\": \"CXD-…\", \"authority\": \"CXO-…\", \"changes\": [{\"field\": \"name\", \"old\": \"Aron\", \"new\": \"Aron II\"}, {\"field\": \"attributes.CALL_NAME\", \"old\": null, \"new\": \"Ari\"}], \"evidence\": [\"CXF-…\"], \"evidence_links\": [{\"url\": \"https://…\", \"title\": \"…\"}], \"images\": [\"CXF-…\"], \"note\": \"…\"}` – Felder `name`, `sex`, `date_of_birth`, `date_of_death` (Teildatum), `attributes.<CODE>` der Stelle; `old` muss dem heutigen Stand entsprechen; Nachweis Pflicht außer bei reinen Bildern; entschieden wird je Feld (`fields` beim Genehmigen)\n- `PERSON_CORRECTION` – Berichtigung eigener Angaben (Art. 16); wird nur von der Person selbst unter Meine Daten eingereicht und ist per API nicht zulässig (422), erscheint aber in Listen und Prüfungen der zuständigen Stelle\n- `LITTER_REPORT`: `{\"mating\": \"CXM-…\", \"whelped_on\": \"2026-05-02\", \"puppies\": [{\"name\": \"Aron\", \"sex\": \"MALE\", \"birth_type\": \"NATURAL\", \"born_at\": \"06:40\", \"birth_order\": 1, \"color\": \"BLUE\", \"coat_color\": \"SEMMELGELB\"}], \"males_dead\": 0, \"females_dead\": 0, \"date_reason\": null}` – Wurfbuchstabe fortlaufend je Zwinger, Welpen-Akten werden angelegt\n- `LITTER_INSPECTION_REQUEST`: `{\"litter\": \"CXW-…\", \"preferred_on\": \"2026-06-20\"}` – Anmeldung der Wurfabnahme\n\n`MATING_REPORT`, `LITTER_REPORT` und `LITTER_INSPECTION_REQUEST` kann der Verein auf „nur Ankündigung“ stellen (E74):\ndann ist der Vorschlag schon in der Antwort `APPROVED` mit `announced: true` und sofort wirksam.\n- `DOG_CREATE`: `{\"name\": \"…\", \"breed\": \"CXB-…\", \"sex\": \"MALE\", \"date_of_birth\": \"2026-02-01\", \"microchip\": \"…\", \"sire\": \"CXD-…\", \"dam\": \"CXD-…\", \"breeder\": \"CXP-…\", \"authority\": \"CXO-…\"}` – eine vergebene Chipnummer wird abgelehnt\n\nBeim Einreichen werden die Nutzdaten formal und fachlich geprüft (Probelauf mit den Regeln der Plattform, z. B. Skalen,\nGeschlecht und Alter der Eltern, Zyklen im Stammbaum); Fehler kommen als 422. Nach der Genehmigung verweist `result`\nauf den offiziellen Datensatz – bei Datensätzen ohne öffentliche ID (Abstammung, Besitzerwechsel) ist `result.id` null.\n",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "type",
                                    "payload"
                                ],
                                "properties": {
                                    "type": {
                                        "type": "string",
                                        "enum": [
                                            "TITLE",
                                            "EVENT_RESULT",
                                            "HEALTH_TEST",
                                            "GENETIC_TEST",
                                            "OWNER_CHANGE",
                                            "PARENTAGE",
                                            "DOG_CREATE",
                                            "KENNEL_APPLICATION",
                                            "KENNEL_OWNER_CHANGE",
                                            "MATING_REQUEST",
                                            "MATING_REPORT",
                                            "LITTER_REPORT",
                                            "LITTER_INSPECTION_REQUEST",
                                            "RULE_EXCEPTION",
                                            "JUDGE_QUALIFICATION",
                                            "DOG_EDIT"
                                        ]
                                    },
                                    "payload": {
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Eingereicht",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProposalEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/proposals/{proposal}": {
            "get": {
                "summary": "Status eines Vorschlags",
                "description": "Sichtbar für den Einreicher und die zuständige Authority; sonst 404.",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    },
                    {
                        "oauth2": [
                            "proposals:review"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/ProposalId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Vorschlag",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProposalEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    }
                }
            }
        },
        "/me/proposals/{proposal}/confirmation": {
            "post": {
                "summary": "Bescheid einer Stelle ohne CANIDEX selbst bestätigen",
                "description": "Arbeitet die zuständige Stelle (noch) nicht mit CANIDEX (`authority_in_canidex: false`, E215), erfasst der\nEinreichende ihren Bescheid selbst: Entscheidung, Datum und den Bescheid als Dokument (PDF, JPG, PNG, bis 10 MB),\noptional Aktenzeichen; eine Ablehnung braucht eine Begründung. Wirkung wie eine Entscheidung der Stelle, dauerhaft\nals selbst bestätigt gekennzeichnet. Nur der Einreichende, nur offene Vorschläge, nur mit Benutzer-Token.\nArbeitet die Stelle mit CANIDEX, kommt 422.\n",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/ProposalId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "decision",
                                    "decided_on",
                                    "document"
                                ],
                                "properties": {
                                    "decision": {
                                        "type": "string",
                                        "enum": [
                                            "APPROVED",
                                            "REJECTED"
                                        ]
                                    },
                                    "decided_on": {
                                        "type": "string",
                                        "format": "date",
                                        "description": "Datum des Bescheids, nicht in der Zukunft"
                                    },
                                    "document": {
                                        "type": "string",
                                        "format": "binary"
                                    },
                                    "reference": {
                                        "type": "string",
                                        "maxLength": 100
                                    },
                                    "reason": {
                                        "type": "string",
                                        "maxLength": 2000,
                                        "description": "Pflicht bei REJECTED"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Entschieden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProposalEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/me/kennels/{kennel}/confirmation": {
            "post": {
                "summary": "Bescheid zum eigenen Zwingerschutz-Antrag selbst bestätigen",
                "description": "Arbeitet die Stelle, bei der der Antrag liegt, (noch) nicht mit CANIDEX (`responsible_organization_in_canidex: false`,\nE215), erfasst ein heutiger Inhaber ihren Bescheid: `FORWARD` (an `organization`), `PROTECT` (mit `fci_number`, nur\nFCI) oder `REJECT` (mit `reason`), dazu Datum und Dokument wie bei Vorschlägen. Nur mit Benutzer-Token.\n",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "name": "kennel",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CXK-[0-9A-HJKMNP-TV-Z]{26}$"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "decision",
                                    "decided_on",
                                    "document"
                                ],
                                "properties": {
                                    "decision": {
                                        "type": "string",
                                        "enum": [
                                            "FORWARD",
                                            "PROTECT",
                                            "REJECT"
                                        ]
                                    },
                                    "organization": {
                                        "type": "string",
                                        "description": "Öffentliche ID der nächsten Stelle (FORWARD)"
                                    },
                                    "fci_number": {
                                        "type": "string",
                                        "maxLength": 50
                                    },
                                    "decided_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "document": {
                                        "type": "string",
                                        "format": "binary"
                                    },
                                    "reference": {
                                        "type": "string",
                                        "maxLength": 100
                                    },
                                    "reason": {
                                        "type": "string",
                                        "maxLength": 2000
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Neuer Stand",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/KennelProfile"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/proposals/{proposal}/withdraw": {
            "post": {
                "summary": "Vorschlag zurückziehen (nur Einreicher, bis zur Entscheidung)",
                "security": [
                    {
                        "oauth2": [
                            "proposals:write"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/ProposalId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Zurückgezogen",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProposalEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/proposals/{proposal}/review": {
            "post": {
                "summary": "Prüfung beginnen (SUBMITTED → UNDER_REVIEW)",
                "description": "Nur Benutzerkonten mit APPROVE auf PROPOSALS in der zuständigen Organisation.",
                "security": [
                    {
                        "oauth2": [
                            "proposals:review"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/ProposalId"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "In Prüfung",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProposalEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/proposals/{proposal}/approve": {
            "post": {
                "summary": "Genehmigen – legt den offiziellen, bestätigten Datensatz an",
                "security": [
                    {
                        "oauth2": [
                            "proposals:review"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/ProposalId"
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "reason": {
                                        "type": "string",
                                        "maxLength": 2000
                                    },
                                    "fields": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "description": "DOG_EDIT: angenommene Felder; ohne Angabe alle ohne Konflikt"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Genehmigt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProposalEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        },
        "/proposals/{proposal}/reject": {
            "post": {
                "summary": "Ablehnen (Begründung erforderlich)",
                "security": [
                    {
                        "oauth2": [
                            "proposals:review"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/RequestId"
                    },
                    {
                        "$ref": "#/components/parameters/ProposalId"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "reason"
                                ],
                                "properties": {
                                    "reason": {
                                        "type": "string",
                                        "maxLength": 2000
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Abgelehnt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProposalEnvelope"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthenticated"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    }
                }
            }
        }
    }
}
