---
title: "Branding aktualisieren"
description: "Aktualisiert die Branding-Konfiguration der Organisation. Alle Felder sind optional: nur gesendete Felder werden aktualisiert. Wird productName oder eine Theme-Farbe auf null gesetzt, wird sie geleert. Erfordert die Admin-Rolle."
---

`PATCH /api/organization/whitelabel/branding`

Theme-Farben akzeptieren CSS-Custom-Property-Tokens (z.B. `--color-red-500`) oder Hex-Farben (z.B. `#43B1AE`). Ungültige Werte werden abgelehnt.

## Anfrage (Request Body) (alle optional)

| Feld | Typ | Beschreibung |
|-------|------|-------------|
| `productName` | string\|null | Anzeigename des Produkts (1-80 Zeichen). `null` leert ihn. |
| `hideProductName` | boolean | Blendet den Produktnamen in der UI aus |
| `hideLogos` | boolean | Blendet alle Logos in der UI aus |
| `themePrimary` | string\|null | Primäre Theme-Farbe (Hex oder CSS-Variable). `null` leert sie. |
| `themeNeutral` | string\|null | Neutrale/sekundäre Theme-Farbe (Hex oder CSS-Variable). `null` leert sie. |

## Beispiel (cURL)

```bash
curl -X PATCH "$BASE_URL/api/organization/whitelabel/branding" \
  -H "Cookie: $SESSION_COOKIE" \
  -H "Content-Type: application/json" \
  -d '{
    "productName": "Acme Monitor",
    "themePrimary": "#43B1AE",
    "hideProductName": false
  }'
```

## Antwort (Response)

```json
{
  "branding": {
    "productName": "Acme Monitor",
    "hideProductName": false,
    "hideLogos": false,
    "themePrimary": "#43B1AE",
    "themeSecondary": null,
    "updatedAt": "2026-04-15T12:00:00.000Z"
  }
}
```

## Häufige Fehler

- `401 Unauthorized` wenn nicht authentifiziert
- `403 Forbidden` wenn kein Admin

