curl --request POST \
--url https://api-v2.production.higg.org/pic-api/v1/material-library/update/{materialId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-developer-request-token: <api-key>' \
--data '
{
"name": "<string>",
"code": "<string>",
"category": "<string>",
"supplier": "<string>",
"country": "<string>",
"cycleProcess": [
{
"lifeCycle": "<string>",
"country": "<string>",
"facilityWorldlyId": "<string>"
}
],
"baseMaterials": [
{
"id": "<string>",
"composition": 123,
"sustainability": "<string>",
"shortPath": {
"yarnSize": "<string>",
"autoFromShortPath": true
},
"manufacturer": "<string>",
"tradeName": "<string>",
"country": "<string>",
"typeCode": "<string>",
"materialSubtype": "<string>",
"sustainabilityAttribute": "<string>"
}
]
}
'{
"_id": "<string>",
"type": "<string>",
"name": "<string>",
"t2GlobalWarmingImpact": 123,
"t3GlobalWarmingImpact": 123,
"t4GlobalWarmingImpact": 123,
"createdOn": 123,
"user": {
"_id": "<string>",
"email": "<string>",
"firstname": "<string>",
"lastname": "<string>"
},
"account": {
"_id": "<string>",
"name": "<string>",
"country": "<string>",
"sacId": 123,
"oar_id": "<string>",
"demoaccount": true,
"socialCreditId": "<string>",
"taxId": "<string>",
"bluesignId": "<string>",
"zdhcId": "<string>",
"ipeViolation": {
"totalViolations": 123
},
"ffcId": 123
},
"totalMaterialGlobalWarmingImpact": 123,
"_rev": "<string>",
"code": "<string>",
"category": "<string>",
"supplierCountry": "<string>",
"nameId": "<string>",
"supplier": "<string>",
"country": "<string>",
"tier2": {
"isDefault": true,
"assessment": {
"_id": "<string>",
"surveyVersion": "<string>",
"country": "<string>",
"processName": "<string>"
},
"facility": {
"_id": "<string>",
"name": "<string>",
"country": "<string>",
"sacId": 123,
"oar_id": "<string>",
"demoaccount": true,
"socialCreditId": "<string>",
"taxId": "<string>",
"bluesignId": "<string>",
"zdhcId": "<string>",
"ipeViolation": {
"totalViolations": 123
},
"ffcId": 123
},
"country": "<string>",
"facilityRawText": "<string>"
},
"tier3": {
"isDefault": true,
"assessment": {
"_id": "<string>",
"surveyVersion": "<string>",
"country": "<string>",
"processName": "<string>"
},
"facility": {
"_id": "<string>",
"name": "<string>",
"country": "<string>",
"sacId": 123,
"oar_id": "<string>",
"demoaccount": true,
"socialCreditId": "<string>",
"taxId": "<string>",
"bluesignId": "<string>",
"zdhcId": "<string>",
"ipeViolation": {
"totalViolations": 123
},
"ffcId": 123
},
"country": "<string>",
"facilityRawText": "<string>"
},
"baseMaterials": [
{
"_id": "<string>",
"composition": 123,
"name": "<string>",
"baseMaterialProcesses": [
{
"_id": "<string>",
"name": "<string>",
"stageName": "<string>",
"lifeCycle": "<string>",
"isEligible": true,
"totalMaterialGlobalWarmingImpact": 123,
"totalLossRate": 123,
"residualElectricityTotal": 123,
"lossRate": 123,
"assessment": {
"_id": "<string>",
"surveyVersion": "<string>",
"country": "<string>",
"processName": "<string>"
},
"facility": {
"_id": "<string>",
"name": "<string>",
"country": "<string>",
"sacId": 123,
"oar_id": "<string>",
"demoaccount": true,
"socialCreditId": "<string>",
"taxId": "<string>",
"bluesignId": "<string>",
"zdhcId": "<string>",
"ipeViolation": {
"totalViolations": 123
},
"ffcId": 123
},
"country": "<string>",
"facilityType": [
"<string>"
],
"sipfacilitymaterialprocesstextiles": [
"<string>"
],
"materialproduction_normalized_kgco2e": 123,
"rawmaterialprocessing_normalized_kgco2e": 123,
"globalWarmingImpact": 123,
"facilityRawText": "<string>"
}
],
"totalMaterialGlobalWarmingImpactT2": 123,
"totalMaterialGlobalWarmingImpactT3": 123,
"totalMaterialGlobalWarmingImpactT4": 123,
"totalMaterialGlobalWarmingImpact": 123,
"refKey": "<string>",
"sustainability": {
"isEligible": true,
"type": "Recycled",
"processId": "<string>"
},
"manufacturer": "<string>",
"tradeName": "<string>",
"country": "<string>",
"typeCode": "<string>",
"materialSubtype": "<string>",
"sustainabilityAttribute": "<string>",
"baseMaterialProcessesList": [
{
"_id": "<string>",
"name": "<string>",
"stageName": "<string>",
"lifeCycle": "<string>",
"isEligible": true,
"totalMaterialGlobalWarmingImpact": 123,
"totalLossRate": 123,
"residualElectricityTotal": 123,
"lossRate": 123,
"assessment": {
"_id": "<string>",
"surveyVersion": "<string>",
"country": "<string>",
"processName": "<string>"
},
"facility": {
"_id": "<string>",
"name": "<string>",
"country": "<string>",
"sacId": 123,
"oar_id": "<string>",
"demoaccount": true,
"socialCreditId": "<string>",
"taxId": "<string>",
"bluesignId": "<string>",
"zdhcId": "<string>",
"ipeViolation": {
"totalViolations": 123
},
"ffcId": 123
},
"country": "<string>",
"facilityType": [
"<string>"
],
"sipfacilitymaterialprocesstextiles": [
"<string>"
],
"materialproduction_normalized_kgco2e": 123,
"rawmaterialprocessing_normalized_kgco2e": 123,
"globalWarmingImpact": 123,
"facilityRawText": "<string>"
}
],
"uniqueCyclesAssessments": [
{
"assessmentId": "<string>",
"processId": "<string>",
"lifeCycle": "<string>",
"isEligible": true,
"sipfacilitymaterialprocesstextiles": "<string>"
}
],
"shortPath": {
"yarnSize": "<string>",
"autoFromShortPath": true
},
"v2Calculations": {
"totalMaterialGlobalWarmingImpactT2": 123,
"totalMaterialGlobalWarmingImpactT3": 123,
"totalMaterialGlobalWarmingImpactT4": 123,
"totalMaterialGlobalWarmingImpact": 123
},
"stages": [
{
"stageId": "<string>",
"countryCode": "<string>",
"source": "<string>",
"disaggregated": true,
"processId": "<string>",
"lossRate": 123,
"residualGWP": 123,
"residualScope3GWP": 123,
"totalElectricity": 123,
"naturalGas": 123,
"diesel": 123,
"coal": 123,
"systemBoundaryStages": [
"<string>"
],
"yarnSize": "<string>",
"yarnUnit": "<string>",
"countryGridEF": {
"countryCode": "<string>",
"gwp": 123,
"eutrophication": 123,
"waterScarcity": 123,
"abioticDepletion": 123,
"dataSource": "<string>"
},
"activityAttribute": "<string>",
"country": "<string>",
"dyeType": "<string>",
"activityType": "<string>",
"processType": "<string>",
"manufacturer": "<string>",
"textileFormation": "<string>",
"enabledBy": "<string>",
"intrinsicCharacteristic": "<string>",
"layersCount": "<string>",
"substratePURatio": "<string>",
"programCertification": "<string>",
"inputFor": "<string>",
"contributor": "<string>",
"upstreamProcessId": "<string>",
"organizationId": "<string>",
"approach": "<string>",
"gwPerKg": 123,
"outputMass": 123,
"phaseGW": 123,
"transport": 123
}
]
}
],
"modifiedOn": 123,
"deleted": true,
"deletedBy": {
"_id": "<string>",
"email": "<string>",
"firstname": "<string>",
"lastname": "<string>"
},
"modifiedBy": {
"_id": "<string>",
"email": "<string>",
"firstname": "<string>",
"lastname": "<string>"
},
"createdBy": {
"_id": "<string>",
"email": "<string>",
"firstname": "<string>",
"lastname": "<string>"
},
"v2Calculations": {
"totalMaterialGlobalWarmingImpactT2": 123,
"totalMaterialGlobalWarmingImpactT3": 123,
"totalMaterialGlobalWarmingImpactT4": 123,
"totalMaterialGlobalWarmingImpact": 123
},
"msiVersion": "<string>",
"tags": [
"<string>"
]
}Update Material
curl --request POST \
--url https://api-v2.production.higg.org/pic-api/v1/material-library/update/{materialId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-developer-request-token: <api-key>' \
--data '
{
"name": "<string>",
"code": "<string>",
"category": "<string>",
"supplier": "<string>",
"country": "<string>",
"cycleProcess": [
{
"lifeCycle": "<string>",
"country": "<string>",
"facilityWorldlyId": "<string>"
}
],
"baseMaterials": [
{
"id": "<string>",
"composition": 123,
"sustainability": "<string>",
"shortPath": {
"yarnSize": "<string>",
"autoFromShortPath": true
},
"manufacturer": "<string>",
"tradeName": "<string>",
"country": "<string>",
"typeCode": "<string>",
"materialSubtype": "<string>",
"sustainabilityAttribute": "<string>"
}
]
}
'{
"_id": "<string>",
"type": "<string>",
"name": "<string>",
"t2GlobalWarmingImpact": 123,
"t3GlobalWarmingImpact": 123,
"t4GlobalWarmingImpact": 123,
"createdOn": 123,
"user": {
"_id": "<string>",
"email": "<string>",
"firstname": "<string>",
"lastname": "<string>"
},
"account": {
"_id": "<string>",
"name": "<string>",
"country": "<string>",
"sacId": 123,
"oar_id": "<string>",
"demoaccount": true,
"socialCreditId": "<string>",
"taxId": "<string>",
"bluesignId": "<string>",
"zdhcId": "<string>",
"ipeViolation": {
"totalViolations": 123
},
"ffcId": 123
},
"totalMaterialGlobalWarmingImpact": 123,
"_rev": "<string>",
"code": "<string>",
"category": "<string>",
"supplierCountry": "<string>",
"nameId": "<string>",
"supplier": "<string>",
"country": "<string>",
"tier2": {
"isDefault": true,
"assessment": {
"_id": "<string>",
"surveyVersion": "<string>",
"country": "<string>",
"processName": "<string>"
},
"facility": {
"_id": "<string>",
"name": "<string>",
"country": "<string>",
"sacId": 123,
"oar_id": "<string>",
"demoaccount": true,
"socialCreditId": "<string>",
"taxId": "<string>",
"bluesignId": "<string>",
"zdhcId": "<string>",
"ipeViolation": {
"totalViolations": 123
},
"ffcId": 123
},
"country": "<string>",
"facilityRawText": "<string>"
},
"tier3": {
"isDefault": true,
"assessment": {
"_id": "<string>",
"surveyVersion": "<string>",
"country": "<string>",
"processName": "<string>"
},
"facility": {
"_id": "<string>",
"name": "<string>",
"country": "<string>",
"sacId": 123,
"oar_id": "<string>",
"demoaccount": true,
"socialCreditId": "<string>",
"taxId": "<string>",
"bluesignId": "<string>",
"zdhcId": "<string>",
"ipeViolation": {
"totalViolations": 123
},
"ffcId": 123
},
"country": "<string>",
"facilityRawText": "<string>"
},
"baseMaterials": [
{
"_id": "<string>",
"composition": 123,
"name": "<string>",
"baseMaterialProcesses": [
{
"_id": "<string>",
"name": "<string>",
"stageName": "<string>",
"lifeCycle": "<string>",
"isEligible": true,
"totalMaterialGlobalWarmingImpact": 123,
"totalLossRate": 123,
"residualElectricityTotal": 123,
"lossRate": 123,
"assessment": {
"_id": "<string>",
"surveyVersion": "<string>",
"country": "<string>",
"processName": "<string>"
},
"facility": {
"_id": "<string>",
"name": "<string>",
"country": "<string>",
"sacId": 123,
"oar_id": "<string>",
"demoaccount": true,
"socialCreditId": "<string>",
"taxId": "<string>",
"bluesignId": "<string>",
"zdhcId": "<string>",
"ipeViolation": {
"totalViolations": 123
},
"ffcId": 123
},
"country": "<string>",
"facilityType": [
"<string>"
],
"sipfacilitymaterialprocesstextiles": [
"<string>"
],
"materialproduction_normalized_kgco2e": 123,
"rawmaterialprocessing_normalized_kgco2e": 123,
"globalWarmingImpact": 123,
"facilityRawText": "<string>"
}
],
"totalMaterialGlobalWarmingImpactT2": 123,
"totalMaterialGlobalWarmingImpactT3": 123,
"totalMaterialGlobalWarmingImpactT4": 123,
"totalMaterialGlobalWarmingImpact": 123,
"refKey": "<string>",
"sustainability": {
"isEligible": true,
"type": "Recycled",
"processId": "<string>"
},
"manufacturer": "<string>",
"tradeName": "<string>",
"country": "<string>",
"typeCode": "<string>",
"materialSubtype": "<string>",
"sustainabilityAttribute": "<string>",
"baseMaterialProcessesList": [
{
"_id": "<string>",
"name": "<string>",
"stageName": "<string>",
"lifeCycle": "<string>",
"isEligible": true,
"totalMaterialGlobalWarmingImpact": 123,
"totalLossRate": 123,
"residualElectricityTotal": 123,
"lossRate": 123,
"assessment": {
"_id": "<string>",
"surveyVersion": "<string>",
"country": "<string>",
"processName": "<string>"
},
"facility": {
"_id": "<string>",
"name": "<string>",
"country": "<string>",
"sacId": 123,
"oar_id": "<string>",
"demoaccount": true,
"socialCreditId": "<string>",
"taxId": "<string>",
"bluesignId": "<string>",
"zdhcId": "<string>",
"ipeViolation": {
"totalViolations": 123
},
"ffcId": 123
},
"country": "<string>",
"facilityType": [
"<string>"
],
"sipfacilitymaterialprocesstextiles": [
"<string>"
],
"materialproduction_normalized_kgco2e": 123,
"rawmaterialprocessing_normalized_kgco2e": 123,
"globalWarmingImpact": 123,
"facilityRawText": "<string>"
}
],
"uniqueCyclesAssessments": [
{
"assessmentId": "<string>",
"processId": "<string>",
"lifeCycle": "<string>",
"isEligible": true,
"sipfacilitymaterialprocesstextiles": "<string>"
}
],
"shortPath": {
"yarnSize": "<string>",
"autoFromShortPath": true
},
"v2Calculations": {
"totalMaterialGlobalWarmingImpactT2": 123,
"totalMaterialGlobalWarmingImpactT3": 123,
"totalMaterialGlobalWarmingImpactT4": 123,
"totalMaterialGlobalWarmingImpact": 123
},
"stages": [
{
"stageId": "<string>",
"countryCode": "<string>",
"source": "<string>",
"disaggregated": true,
"processId": "<string>",
"lossRate": 123,
"residualGWP": 123,
"residualScope3GWP": 123,
"totalElectricity": 123,
"naturalGas": 123,
"diesel": 123,
"coal": 123,
"systemBoundaryStages": [
"<string>"
],
"yarnSize": "<string>",
"yarnUnit": "<string>",
"countryGridEF": {
"countryCode": "<string>",
"gwp": 123,
"eutrophication": 123,
"waterScarcity": 123,
"abioticDepletion": 123,
"dataSource": "<string>"
},
"activityAttribute": "<string>",
"country": "<string>",
"dyeType": "<string>",
"activityType": "<string>",
"processType": "<string>",
"manufacturer": "<string>",
"textileFormation": "<string>",
"enabledBy": "<string>",
"intrinsicCharacteristic": "<string>",
"layersCount": "<string>",
"substratePURatio": "<string>",
"programCertification": "<string>",
"inputFor": "<string>",
"contributor": "<string>",
"upstreamProcessId": "<string>",
"organizationId": "<string>",
"approach": "<string>",
"gwPerKg": 123,
"outputMass": 123,
"phaseGW": 123,
"transport": 123
}
]
}
],
"modifiedOn": 123,
"deleted": true,
"deletedBy": {
"_id": "<string>",
"email": "<string>",
"firstname": "<string>",
"lastname": "<string>"
},
"modifiedBy": {
"_id": "<string>",
"email": "<string>",
"firstname": "<string>",
"lastname": "<string>"
},
"createdBy": {
"_id": "<string>",
"email": "<string>",
"firstname": "<string>",
"lastname": "<string>"
},
"v2Calculations": {
"totalMaterialGlobalWarmingImpactT2": 123,
"totalMaterialGlobalWarmingImpactT3": 123,
"totalMaterialGlobalWarmingImpactT4": 123,
"totalMaterialGlobalWarmingImpact": 123
},
"msiVersion": "<string>",
"tags": [
"<string>"
]
}Request body params
| Name | Type | Description |
|---|---|---|
name | string | Updated material name. |
code | string | Updated material code. |
category | string | Updated material category. |
supplier | string | Updated supplier name. |
country | string | Updated country of origin. |
cycleProcess | Array<CycleProcess> | Updated life cycle processes (stages P002–P006). |
baseMaterials | Array<BaseMaterial> | Updated base materials with composition percentages. |
Implementation Details
- Partial updates: All fields are optional. Only the fields you provide will be updated.
- Backfill behavior: If you update
cycleProcesswithout providingbaseMaterials, the existing base materials are preserved. - Same validation as create: When provided, base material compositions must sum to 100%, life cycle stages must be unique, and each process needs a
countryorfacilityWorldlyId.
Path Parameters
Body
Response
Ok
This interface was referenced by Exports's JSON-Schema via the definition "picMaterialLibraryEntity".
This interface was referenced by Exports's JSON-Schema via the definition "userRef".
Show child attributes
Show child attributes
This interface was referenced by Exports's JSON-Schema via the definition "accountRef".
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
This interface was referenced by Exports's JSON-Schema via the definition "userRef".
Show child attributes
Show child attributes
This interface was referenced by Exports's JSON-Schema via the definition "userRef".
Show child attributes
Show child attributes
This interface was referenced by Exports's JSON-Schema via the definition "userRef".
Show child attributes
Show child attributes
Calculation results produced by the matlibV2 calculator (POST /api/calculate). Carried at the material level on PicMaterialLibraryEntity and per-base-material on PicBaseMaterialRef so each scope's totals can be persisted alongside the v1 fields without disturbing them.
Show child attributes
Show child attributes

