curl --request PATCH \
--url https://api.insightchain.ai/v1/passports/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"category": "Tops",
"draft_data": {
"care_instructions": "Machine wash cold. Do not tumble dry.",
"manufacturing": {
"facility_country": "VN",
"assembly_country": "VN",
"manufactured_on": "2026-10-12"
}
}
}
'import requests
url = "https://api.insightchain.ai/v1/passports/{id}"
payload = {
"category": "Tops",
"draft_data": {
"care_instructions": "Machine wash cold. Do not tumble dry.",
"manufacturing": {
"facility_country": "VN",
"assembly_country": "VN",
"manufactured_on": "2026-10-12"
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
category: 'Tops',
draft_data: {
care_instructions: 'Machine wash cold. Do not tumble dry.',
manufacturing: {facility_country: 'VN', assembly_country: 'VN', manufactured_on: '2026-10-12'}
}
})
};
fetch('https://api.insightchain.ai/v1/passports/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"passport": {
"id": "5f042be4-0cce-4a7f-ab93-bbcb8c35ef81",
"org_id": "4fc7a944-6245-4491-b6af-694bd6bd14cf",
"external_id": "TOTE-MAT-00000023",
"granularity": "model",
"item_id": "221641ba-5901-43de-bacd-998771b3a578",
"variant_id": null,
"lot_id": null,
"tracked_unit_id": null,
"item_external_id": "MAT-00000023",
"lot_external_id": null,
"gtin": "00012345678905",
"batch_lot": null,
"serial": null,
"title": {
"en": "Canvas tote",
"fr": "Cabas en toile"
},
"brand": "Northwind Atelier",
"category": "Handbags",
"status": "draft",
"published_version_id": null,
"draft_data": {
"impact": {
"water_m3": 0.4,
"energy_kwh": 3.2
},
"durability": [
{
"value": "Grade 5",
"metric": "abrasion",
"standard_ref": "ISO 12947-2"
}
],
"image_urls": [
"images/canvas-tote-front.jpg"
],
"circularity": {
"takeback_url": "https://example.com/takeback",
"material_routes": [
{
"route": "metal_recycling",
"material": "Brass"
}
],
"recyclability_route": {
"en": "Leather is repurposable; hardware is recyclable."
},
"takeback_scheme_name": "Take-back",
"epr_registration_number": "IT-EPR-0001"
},
"manufacturing": {
"assembly_country": "IT",
"facility_country": "IT",
"facility_external_id": "FAC-IT-0001"
},
"repairability": {
"score": 8,
"summary": {
"en": "Straps and hardware are replaceable."
},
"spare_parts_url": "https://example.com/spares",
"disassembly_steps": [
"Unclip the strap."
],
"disassembly_tools": [
"Screwdriver"
]
},
"stage_origins": [
{
"stage": "fibre",
"country_code": "IT"
}
],
"care_instructions": {
"en": "Wipe with a soft, dry cloth."
}
},
"completeness_score": 5.88,
"compliance_state": "incomplete",
"ruleset_version": "2026.08-textile-v1",
"public_enabled": false,
"registry_ref": null,
"created_at": "2026-11-21T10:55:55.212128+00:00",
"updated_at": "2026-11-21T10:55:55.240945+00:00"
},
"completeness": {
"score": 45.88,
"sections": [
{
"section": "materials",
"label": "Materials & composition",
"score": 0,
"met": 0,
"total": 6,
"weight": 20
}
],
"gaps": [
{
"id": "materials.composition_present",
"label": "Fibre composition declared",
"section": "materials",
"sectionLabel": "Materials & composition",
"severity": "blocking",
"weight": 5,
"remediation": "Add at least one material with its share of total mass.",
"regulationRefs": [
"Reg. (EU) 1007/2011 Art.14"
]
}
],
"blockingGaps": 2,
"requiredGaps": 10,
"applicable": 34,
"met": 17,
"rulesetVersion": "2026.08-textile-v1"
},
"request_id": "236c9e98-0048-44d9-8e42-34ea95befa49"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Update passport
Update a passport’s fields: at least one is required. Sending public_enabled also needs the execute scope, and then the key’s creator must still be a member.
Key scope: ingest. Module: dpp.
curl --request PATCH \
--url https://api.insightchain.ai/v1/passports/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"category": "Tops",
"draft_data": {
"care_instructions": "Machine wash cold. Do not tumble dry.",
"manufacturing": {
"facility_country": "VN",
"assembly_country": "VN",
"manufactured_on": "2026-10-12"
}
}
}
'import requests
url = "https://api.insightchain.ai/v1/passports/{id}"
payload = {
"category": "Tops",
"draft_data": {
"care_instructions": "Machine wash cold. Do not tumble dry.",
"manufacturing": {
"facility_country": "VN",
"assembly_country": "VN",
"manufactured_on": "2026-10-12"
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
category: 'Tops',
draft_data: {
care_instructions: 'Machine wash cold. Do not tumble dry.',
manufacturing: {facility_country: 'VN', assembly_country: 'VN', manufactured_on: '2026-10-12'}
}
})
};
fetch('https://api.insightchain.ai/v1/passports/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"passport": {
"id": "5f042be4-0cce-4a7f-ab93-bbcb8c35ef81",
"org_id": "4fc7a944-6245-4491-b6af-694bd6bd14cf",
"external_id": "TOTE-MAT-00000023",
"granularity": "model",
"item_id": "221641ba-5901-43de-bacd-998771b3a578",
"variant_id": null,
"lot_id": null,
"tracked_unit_id": null,
"item_external_id": "MAT-00000023",
"lot_external_id": null,
"gtin": "00012345678905",
"batch_lot": null,
"serial": null,
"title": {
"en": "Canvas tote",
"fr": "Cabas en toile"
},
"brand": "Northwind Atelier",
"category": "Handbags",
"status": "draft",
"published_version_id": null,
"draft_data": {
"impact": {
"water_m3": 0.4,
"energy_kwh": 3.2
},
"durability": [
{
"value": "Grade 5",
"metric": "abrasion",
"standard_ref": "ISO 12947-2"
}
],
"image_urls": [
"images/canvas-tote-front.jpg"
],
"circularity": {
"takeback_url": "https://example.com/takeback",
"material_routes": [
{
"route": "metal_recycling",
"material": "Brass"
}
],
"recyclability_route": {
"en": "Leather is repurposable; hardware is recyclable."
},
"takeback_scheme_name": "Take-back",
"epr_registration_number": "IT-EPR-0001"
},
"manufacturing": {
"assembly_country": "IT",
"facility_country": "IT",
"facility_external_id": "FAC-IT-0001"
},
"repairability": {
"score": 8,
"summary": {
"en": "Straps and hardware are replaceable."
},
"spare_parts_url": "https://example.com/spares",
"disassembly_steps": [
"Unclip the strap."
],
"disassembly_tools": [
"Screwdriver"
]
},
"stage_origins": [
{
"stage": "fibre",
"country_code": "IT"
}
],
"care_instructions": {
"en": "Wipe with a soft, dry cloth."
}
},
"completeness_score": 5.88,
"compliance_state": "incomplete",
"ruleset_version": "2026.08-textile-v1",
"public_enabled": false,
"registry_ref": null,
"created_at": "2026-11-21T10:55:55.212128+00:00",
"updated_at": "2026-11-21T10:55:55.240945+00:00"
},
"completeness": {
"score": 45.88,
"sections": [
{
"section": "materials",
"label": "Materials & composition",
"score": 0,
"met": 0,
"total": 6,
"weight": 20
}
],
"gaps": [
{
"id": "materials.composition_present",
"label": "Fibre composition declared",
"section": "materials",
"sectionLabel": "Materials & composition",
"severity": "blocking",
"weight": 5,
"remediation": "Add at least one material with its share of total mass.",
"regulationRefs": [
"Reg. (EU) 1007/2011 Art.14"
]
}
],
"blockingGaps": 2,
"requiredGaps": 10,
"applicable": 34,
"met": 17,
"rulesetVersion": "2026.08-textile-v1"
},
"request_id": "236c9e98-0048-44d9-8e42-34ea95befa49"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Authorizations
Path Parameters
Body
Passport content beyond the fields above, merged key by key over what is stored (a key you send replaces that key whole). Keys: economic_operator {legal_name, eori, registered_address, contact_email}, manufacturing {facility_external_id, facility_country, assembly_country, manufactured_on}, stage_origins [{stage, country_code, facility_external_id}], care_instructions (a string or one per language), durability [{metric, value, standard_ref}], repairability {score, summary, spare_parts_url, disassembly_steps[], disassembly_tools[]}, circularity {recyclability_route, material_routes [{material, route}], takeback_scheme_name, takeback_url, epr_registration_number}, impact {carbon_kg_co2e, method, boundary, water_m3, energy_kwh, methodology_note}, svhc_declaration_made (boolean), image_urls []