---
title: Compliance-Profil aktualisieren
description: "Unternehmensfakten in das DPP-Compliance-Profil zusammenführen — Rolle, Kategorien, Märkte, Größenband u. v. m. Erfordert passports:write + admin-Rolle."
canonical: "https://www.tracepass.eu/de/docs/patch-compliance-profile"
locale: de
source: "https://www.tracepass.eu/de/docs/patch-compliance-profile"
---

# Compliance-Profil aktualisieren

> Unternehmensfakten in das DPP-Compliance-Profil zusammenführen — Rolle, Kategorien, Märkte, Größenband u. v. m. Erfordert passports:write + admin-Rolle.

```http
PATCH /api/v1/company/compliance-profile
```

Führt die bereitgestellten Felder in das gespeicherte Compliance-Profil zusammen und gibt das aktualisierte Profil mit `updatedAt` zurück. Nicht enthaltene Felder bleiben unverändert. Setzen Sie ein Feld auf `null`, um es zu entfernen. Validierte Felder: `role`, `ownBrand`, `categories`, `markets`, `products` (Array, max. 50), `sizeBand`, `salesChannels`, `dataSystems` (String, max. 200 Zeichen). Ein ungültiger Wert liefert 400 `invalid_input`.

Auth: API-Schlüssel oder OAuth mit `passports:write`. Bei OAuth-Prinzipalen muss der Nutzer die Rolle `admin` oder `owner` haben. API-Schlüssel sind nicht rollenbeschränkt. Zählt keine Scope-Antwort.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | yes | `Bearer <token>` — entweder ein `tp_` API-Schlüssel (Developer → API Keys; am einfachsten, für Server-zu-Server) oder ein OAuth-2.0-Access-Token (Developer → OAuth Apps; für nutzerautorisierte Apps, scoped und widerrufbar). Die Authentication-Seite enthält den vollständigen OAuth-Flow und die Scope-Liste. |
| `role` | body | string | no | Rolle des Unternehmens in der Lieferkette — `manufacturer`, `importer`, `distributor`, `authorised_representative` oder `fulfilment_service_provider`. |
| `categories` | body | string\[\] | no | Array von Vorlagen-Kategorieschlüsseln, mit denen das Unternehmen arbeitet. |
| `markets` | body | string\[\] | no | ISO-3166-1-Alpha-2-Ländercodes oder `EU` für alle EU-Märkte. |
| `sizeBand` | body | string | no | Unternehmensgröße — `sme` oder `large`. |

## Examples

```bash
curl -sS https://app.tracepass.eu/api/v1/company/compliance-profile \
  -X PATCH \
  -H "Authorization: Bearer tp_REDACTED_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"role":"manufacturer","categories":["battery"],"markets":["EU"],"sizeBand":"sme"}'
```

```typescript
const res = await fetch("https://app.tracepass.eu/api/v1/company/compliance-profile", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.TRACEPASS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    role: "manufacturer",
    categories: ["battery"],
    markets: ["EU"],
    sizeBand: "sme",
  }),
});
const { complianceProfile, updatedAt } = await res.json();
```

```python
import os, requests
resp = requests.patch(
    "https://app.tracepass.eu/api/v1/company/compliance-profile",
    headers={
        "Authorization": f"Bearer {os.environ['TRACEPASS_API_KEY']}",
        "Content-Type": "application/json",
    },
    json={"role": "manufacturer", "categories": ["battery"], "markets": ["EU"]},
)
data = resp.json()
```

## Responses

### 200 — Aktualisiertes Profil

```json
{
  "complianceProfile": {
    "role": "manufacturer",
    "categories": ["battery"],
    "markets": ["EU"],
    "sizeBand": "sme"
  },
  "updatedAt": "2026-10-11T19:01:12.152Z"
}
```

### 400 — Ungültiger Wert

```json
{ "error": "invalid_input", "field": "role", "message": "Invalid option: expected one of \"manufacturer\"|\"importer\"|\"distributor\"|\"authorised_representative\"|\"fulfilment_service_provider\"" }
```

### 401 — Nicht autorisiert

```json
{ "error": "Invalid or revoked API key" }
```

### 403 — Admin-Rolle erforderlich

```json
{ "error": "Forbidden", "message": "admin role required to update the compliance profile" }
```

## Related

- [GET Compliance-Profil lesen](https://www.tracepass.eu/de/docs/get-compliance-profile.md)
- [DELETE Compliance-Profil löschen](https://www.tracepass.eu/de/docs/delete-compliance-profile.md)
