---
title: Aggiorna profilo conformità
description: "Unisci dati aziendali nel profilo di conformità DPP — ruolo, categorie, mercati, fascia dimensionale e altro. Richiede passports:write e ruolo admin per OAuth."
canonical: "https://www.tracepass.eu/it/docs/patch-compliance-profile"
locale: it
source: "https://www.tracepass.eu/it/docs/patch-compliance-profile"
---

# Aggiorna profilo conformità

> Unisci dati aziendali nel profilo di conformità DPP — ruolo, categorie, mercati, fascia dimensionale e altro. Richiede passports:write e ruolo admin per OAuth.

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

Unisce i campi forniti nel profilo di conformità memorizzato e restituisce il profilo aggiornato con `updatedAt`. I campi non inclusi nella richiesta rimangono invariati. Impostate un campo su `null` per rimuoverlo. Campi validati: `role`, `ownBrand`, `categories`, `markets`, `products` (array, max 50), `sizeBand`, `salesChannels`, `dataSystems` (stringa, max 200 caratteri). Un valore non valido restituisce 400 `invalid_input`.

Auth: chiave API o OAuth con `passports:write`. Per i principal OAuth, l'utente deve avere il ruolo `admin` o `owner`. Le chiavi API non sono vincolate al ruolo. Non conta risposte normative.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | header | string | yes | `Bearer <token>` — una chiave API `tp_` (Developer → API Keys; più semplice, per server-to-server) oppure un access token OAuth 2.0 (Developer → OAuth Apps; per app autorizzate dall'utente, scoped e revocabili). La pagina Authentication contiene il flusso OAuth completo e l'elenco degli scopes. |
| `role` | body | string | no | Ruolo dell'azienda nella catena di fornitura — `manufacturer`, `importer`, `distributor`, `authorised_representative` o `fulfilment_service_provider`. |
| `categories` | body | string\[\] | no | Array di chiavi categoria template con cui l'azienda opera. |
| `markets` | body | string\[\] | no | Codici paese ISO-3166-1 alpha-2 o `EU` per tutti i mercati UE. |
| `sizeBand` | body | string | no | Dimensione aziendale — `sme` o `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 — Profilo aggiornato

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

### 400 — Valore non valido

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

### 401 — Non autorizzato

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

### 403 — Ruolo admin richiesto

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

## Related

- [GET Leggi profilo conformità](https://www.tracepass.eu/it/docs/get-compliance-profile.md)
- [DELETE Elimina profilo conformità](https://www.tracepass.eu/it/docs/delete-compliance-profile.md)
