Skip to main content
POST
Create a model input
Requires permission:

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

uuid
string<uuid>
required

Body

application/json
syncId
string

An identifier to use when syncing data with other systems. Read more

Example:

"sync123"

quantity
number
Example:

150

unit
string

The unit code (e.g. kg, lbs, etc.). All unit codes can be found in the List Units endpoint.

Example:

"kg"

order
number
Example:

1

material
object
block
object
lifecycleStage
object
bundled
boolean

Whether the material counts as one value at this input's stage. true imports the material's A1-A3 as a single value. false imports the material's own stages into the matching stages of this input's life cycle group, so an input at C2 takes the material's C1-C4. New inputs are bundled; omitting bundled on PATCH leaves the setting unchanged, except that an unbundled input whose stage or material changes takes the new stage's group, or is bundled if it no longer qualifies. Sending false needs an input with a life cycle stage and a material that has no category model and is your own, an EPD, or an emission factor; otherwise it returns 400.

Example:

true

materialGroup
string[]

How this input is categorized within its life-cycle stage. Common values are product, packaging, and ancillary; custom values (e.g. from a PCR document) are allowed. isPackaging is kept consistent automatically.

These are stored values, both when read and when written. The model CSV export's Material_group column shows the display names the PCR gives the group and its parents instead (Product > Control gear, not controlUnit), and reads N/A on a row whose source is not categorized under the material taxonomy, so a value taken from that file cannot be sent back here as-is.

Example:
transport
object | null

Freight transport attached to this input as a single transport leg. Set to attach or update the binding; send null on PATCH to detach (omitting transport leaves an existing binding untouched). An input cannot be both a material line and a transport leg — sending material and transport together returns 400.

Response

An input

uuid
string<uuid>
syncId
string

An identifier to use when syncing data with other systems. Read more

Example:

"sync123"

quantity
number
Example:

150

unit
string

The unit code (e.g. kg, lbs, etc.). All unit codes can be found in the List Units endpoint.

Example:

"kg"

order
number
Example:

1

material
object
block
object
lifecycleStage
object
bundled
boolean

Whether the material counts as one value at this input's stage. true imports the material's A1-A3 as a single value. false imports the material's own stages into the matching stages of this input's life cycle group, so an input at C2 takes the material's C1-C4. New inputs are bundled; omitting bundled on PATCH leaves the setting unchanged, except that an unbundled input whose stage or material changes takes the new stage's group, or is bundled if it no longer qualifies. Sending false needs an input with a life cycle stage and a material that has no category model and is your own, an EPD, or an emission factor; otherwise it returns 400.

Example:

true

materialGroup
string[]

How this input is categorized within its life-cycle stage. Common values are product, packaging, and ancillary; custom values (e.g. from a PCR document) are allowed. isPackaging is kept consistent automatically.

These are stored values, both when read and when written. The model CSV export's Material_group column shows the display names the PCR gives the group and its parents instead (Product > Control gear, not controlUnit), and reads N/A on a row whose source is not categorized under the material taxonomy, so a value taken from that file cannot be sent back here as-is.

Example:
transport
object | null

Freight transport attached to this input as a single transport leg. Set to attach or update the binding; send null on PATCH to detach (omitting transport leaves an existing binding untouched). An input cannot be both a material line and a transport leg — sending material and transport together returns 400.

created
string

ISO 8601 date

Example:

"2021-01-01T00:00:00.000Z"

updated
string

ISO 8601 date

Example:

"2021-01-31T23:59:59.000Z"

CO2e
string
Example:

"1234.5678"

declaredAmount
object

Read-only canonical amount in the source product's declared unit, used by impact calculation. Present only when quantity + unit you sent are in a different dimension than the source product's declared unit (e.g. you sent kg for an m3-declared source product that has a weight conversion factor). Ignored on POST/PATCH.

recycledPercent
number
read-only

Read-only. Recycled content of this input as a percentage (0–100), inherited from its source product — the source's modeled recycled content when available, otherwise its declared value. 0 when the input has no source product or the source has neither. Ignored on POST/PATCH.

Example:

30