Create Material Library
Material Library
Create Material
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.Documentation Index
Fetch the complete documentation index at: https://developer.worldly.io/llms.txt
Use this file to discover all available pages before exploring further.
PIC | Create a Material with T2/T3 Links
Request body params
| Name | Type | Description |
|---|---|---|
name | string | [REQUIRED] The name for your custom material. |
cycleProcess | Array<CycleProcess> | [REQUIRED] Life cycle processes for this material (stages P002–P006). |
cycleProcess[].lifeCycle | string | [REQUIRED] The life cycle stage ID (e.g., "P002" for Yarn Formation, "P003" for Fabric Formation). |
baseMaterials | Array<BaseMaterial> | [REQUIRED] The base materials that compose this custom material. |
baseMaterials[].id | string | [REQUIRED] The base material ID. Use Get Base Materials to find IDs. |
baseMaterials[].composition | number | [REQUIRED] The percentage composition (all base materials must sum to 100%). |
code | string | Optional material code. |
category | string | Optional material category. |
supplier | string | Optional supplier name. |
supplierCountry | string | Optional supplier country. |
country | string | Optional country of origin. |
cycleProcess[].country | string | Country value for this process stage. Use Get Country List for valid values. Required if facilityWorldlyId is not provided. |
cycleProcess[].facilityWorldlyId | string | Worldly facility ID for facility-specific data. Use Get Facilities to find available facilities. |
baseMaterials[].sustainability | string | null | Optional sustainability certification for this base material (e.g., "recycled", "organic"). May be null. |
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
P002throughP006. Each life cycle stage must be unique within a material. These are server-enforced constraints. - Location requirement: Each life cycle process requires either a
countryor afacilityWorldlyId— 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 benull.
Body
application/json
Response
200 - application/json
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".
This interface was referenced by Exports's JSON-Schema
via the definition "accountRef".
This interface was referenced by Exports's JSON-Schema
via the definition "userRef".
This interface was referenced by Exports's JSON-Schema
via the definition "userRef".
This interface was referenced by Exports's JSON-Schema
via the definition "userRef".

