Cookie-Einstellungen
Die Cookies API ermöglicht die Konfiguration von Cookie-Bannern und Consent-Management.
Endpunkte
| Methode | Endpunkt | Beschreibung |
|---|---|---|
GET | /api/v1/legal/cookies | Cookie-Konfiguration abrufen |
PUT | /api/v1/legal/cookies | Konfiguration aktualisieren |
Konfiguration abrufen
GET /api/v1/legal/cookies?organizationId=org_xyz789Konfiguration aktualisieren
PUT /api/v1/legal/cookies{
"organizationId": "org_xyz789",
"enabled": true,
"position": "bottom",
"style": "banner",
"categories": [
{
"id": "essential",
"name": { "de": "Notwendig", "en": "Essential" },
"required": true
},
{
"id": "analytics",
"name": { "de": "Statistik", "en": "Analytics" },
"required": false,
"cookies": ["_ga", "_gid"]
},
{
"id": "marketing",
"name": { "de": "Marketing", "en": "Marketing" },
"required": false,
"cookies": ["_fbp"]
}
]
}Positionen
| Position | Beschreibung |
|---|---|
bottom | Unterer Bildschirmrand |
top | Oberer Bildschirmrand |
center | Zentriertes Modal |
Stile
| Stil | Beschreibung |
|---|---|
banner | Horizontale Leiste |
modal | Zentrierter Dialog |
floating | Schwebendes Element (Ecke) |