/api/v1/company/compliance-profileAggiorna profilo conformità
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.
Header
- Authorizationobbligatorio
string
Bearer <token>— una chiave APItp_(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.e.g. Bearer tp_REDACTED_xxxxxxxxxxxx
Campi del corpo
- role
string
Ruolo dell'azienda nella catena di fornitura —
manufacturer,importer,distributor,authorised_representativeofulfilment_service_provider.e.g. manufacturer
- categories
string[]
Array di chiavi categoria template con cui l'azienda opera.
- markets
string[]
Codici paese ISO-3166-1 alpha-2 o
EUper tutti i mercati UE. - sizeBand
string
Dimensione aziendale —
smeolarge.e.g. sme
Richiesta
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"}'Risposta
{
"complianceProfile": {
"role": "manufacturer",
"categories": ["battery"],
"markets": ["EU"],
"sizeBand": "sme"
},
"updatedAt": "2026-10-11T19:01:12.152Z"
}