Skip to main content
POST
Create Material Library
Use this endpoint to create a custom material in your PIC material library. Custom materials let you model Tier 2 and Tier 3 supply chain processes by specifying base materials, life cycle stages, and facility-level environmental data.

PIC | Create a Material with T2/T3 Links

Request body params

Implementation Details

  • Composition validation: Base material compositions must sum to exactly 100%. This is a server-enforced constraint not expressed in the OpenAPI schema.
  • Life cycle stages: Valid life cycle IDs are P002 through P006. Each life cycle stage must be unique within a material. These are server-enforced constraints.
  • Location requirement: Each life cycle process requires either a country or a facilityWorldlyId — at least one must be provided (server-enforced).
  • Sustainability values: If provided, sustainability is a free-form string label (e.g., "recycled", "organic"). It is optional and may be null.

Authorizations

x-api-key
string
header
required
x-developer-request-token
string
header
required

Body

application/json
name
string
required
cycleProcess
object[]
required
baseMaterials
object[]
required
code
string | null
category
string | null
supplierCountry
string | null
supplier
string | null
country
string | null

Response

200 - application/json

Ok

This interface was referenced by Exports's JSON-Schema via the definition "picMaterialLibraryEntity".

_id
string
required
type
string
required
name
string
required
t2GlobalWarmingImpact
number<double>
required
t3GlobalWarmingImpact
number<double>
required
t4GlobalWarmingImpact
number<double>
required
createdOn
number<double>
required
user
object
required

This interface was referenced by Exports's JSON-Schema via the definition "userRef".

account
object
required

This interface was referenced by Exports's JSON-Schema via the definition "accountRef".

totalMaterialGlobalWarmingImpact
number<double>
required
_rev
string | null
code
string | null
category
string | null
supplierCountry
string | null
nameId
string | null
supplier
string | null
country
string | null
tier2
object
tier3
object
baseMaterials
object[] | null
modifiedOn
number<double> | null
deleted
boolean | null
deletedBy
object

This interface was referenced by Exports's JSON-Schema via the definition "userRef".

modifiedBy
object

This interface was referenced by Exports's JSON-Schema via the definition "userRef".

createdBy
object

This interface was referenced by Exports's JSON-Schema via the definition "userRef".

v2Calculations
object

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.

msiVersion
string | null
tags
string[] | null
msiMaterialId
string | null

Source MSI Material _id when channelCreate is MsiImport

channelCreate
enum<string>
Available options:
MsiImport,
BulkCreateMaterials,
UiMaterials
channelUpdate
enum<string>
Available options:
MsiImport,
BulkCreateMaterials,
UiMaterials