Replace passport substances
curl --request PUT \
--url https://api.insightchain.ai/v1/passports/{id}/substances \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"substances": [
{
"external_id": "SUB-1",
"substance_name": "Disperse dye, declared below threshold",
"regulation": "REACH_SVHC",
"material_external_id": "MAT-THREAD",
"concentration_ppm": 120,
"above_threshold": false
}
]
}
'import requests
url = "https://api.insightchain.ai/v1/passports/{id}/substances"
payload = { "substances": [
{
"external_id": "SUB-1",
"substance_name": "Disperse dye, declared below threshold",
"regulation": "REACH_SVHC",
"material_external_id": "MAT-THREAD",
"concentration_ppm": 120,
"above_threshold": False
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
substances: [
{
external_id: 'SUB-1',
substance_name: 'Disperse dye, declared below threshold',
regulation: 'REACH_SVHC',
material_external_id: 'MAT-THREAD',
concentration_ppm: 120,
above_threshold: false
}
]
})
};
fetch('https://api.insightchain.ai/v1/passports/{id}/substances', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"substances": [
{
"externalId": "SUB-CR6",
"materialExternalId": "MAT-BODY",
"substanceName": "Chromium VI",
"casNumber": "18540-29-9",
"ecNumber": "242-403-9",
"regulation": "REACH_ANNEX_XVII",
"concentrationPpm": 0,
"aboveThreshold": false,
"scipRef": null,
"safeUseInstructions": "Not detected at a 3 mg/kg limit of quantification."
}
],
"completeness": {
"score": 76.67,
"sections": [
{
"section": "materials",
"label": "Materials & composition",
"score": 81.82,
"met": 6,
"total": 7,
"weight": 22
}
],
"gaps": [
{
"id": "impact.carbon_footprint",
"label": "Product carbon footprint",
"section": "impact",
"sectionLabel": "Environmental impact",
"severity": "required",
"weight": 5,
"remediation": "Add the product carbon footprint in kg CO2e.",
"regulationRefs": [
"ESPR 2024/1781 Annex I"
]
}
],
"blockingGaps": 0,
"requiredGaps": 5,
"applicable": 36,
"met": 27,
"rulesetVersion": "2026.08-textile-v1"
},
"request_id": "a3412611-402f-445d-a334-76948399e624"
}{
"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>"
}Product passports
Replace passport substances
Replace substance declarations.
Key scope: ingest. Module: dpp.
PUT
/
v1
/
passports
/
{id}
/
substances
Replace passport substances
curl --request PUT \
--url https://api.insightchain.ai/v1/passports/{id}/substances \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"substances": [
{
"external_id": "SUB-1",
"substance_name": "Disperse dye, declared below threshold",
"regulation": "REACH_SVHC",
"material_external_id": "MAT-THREAD",
"concentration_ppm": 120,
"above_threshold": false
}
]
}
'import requests
url = "https://api.insightchain.ai/v1/passports/{id}/substances"
payload = { "substances": [
{
"external_id": "SUB-1",
"substance_name": "Disperse dye, declared below threshold",
"regulation": "REACH_SVHC",
"material_external_id": "MAT-THREAD",
"concentration_ppm": 120,
"above_threshold": False
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
substances: [
{
external_id: 'SUB-1',
substance_name: 'Disperse dye, declared below threshold',
regulation: 'REACH_SVHC',
material_external_id: 'MAT-THREAD',
concentration_ppm: 120,
above_threshold: false
}
]
})
};
fetch('https://api.insightchain.ai/v1/passports/{id}/substances', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"substances": [
{
"externalId": "SUB-CR6",
"materialExternalId": "MAT-BODY",
"substanceName": "Chromium VI",
"casNumber": "18540-29-9",
"ecNumber": "242-403-9",
"regulation": "REACH_ANNEX_XVII",
"concentrationPpm": 0,
"aboveThreshold": false,
"scipRef": null,
"safeUseInstructions": "Not detected at a 3 mg/kg limit of quantification."
}
],
"completeness": {
"score": 76.67,
"sections": [
{
"section": "materials",
"label": "Materials & composition",
"score": 81.82,
"met": 6,
"total": 7,
"weight": 22
}
],
"gaps": [
{
"id": "impact.carbon_footprint",
"label": "Product carbon footprint",
"section": "impact",
"sectionLabel": "Environmental impact",
"severity": "required",
"weight": 5,
"remediation": "Add the product carbon footprint in kg CO2e.",
"regulationRefs": [
"ESPR 2024/1781 Annex I"
]
}
],
"blockingGaps": 0,
"requiredGaps": 5,
"applicable": 36,
"met": 27,
"rulesetVersion": "2026.08-textile-v1"
},
"request_id": "a3412611-402f-445d-a334-76948399e624"
}{
"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
application/json