Skip to main content
PUT
Update prechain product

Authorizations

X-API-Key
string
header
required

Per-manufacturer API key in the X-API-Key header, format emidat-{key_id}-{secret} where key_id is a random public handle. Issued by an owner in the Emidat dashboard; carries its own permission scopes, optional plant restrictions, and optional expiry. A revoked, expired, or unknown key returns 401. See the Authentication guide for details.

Path Parameters

id
string<uuid>
required

UUID of the prechain product to update.

Body

application/json

Full replacement of editable fields. external_id and transport_route are required and overwrite the stored values. The immutable identity fields may be omitted or echoed from the current resource.

external_id
string | null
required

Your own code for this prechain product. Send the code you want or the one it already carries; null clears it.

transport_route
object | null
required

Replaces the transport route (distances per modality, km).

id
string<uuid>

Optional assertion of the resource ID. It must match the path id.

product_instance_id
string<uuid>

Optional assertion of the current upstream product instance. A different value returns 422.

plant_id
string<uuid>

Optional assertion of the current consuming plant. A different value returns 422.

Response

Updated prechain product.

An existing product instance used as an upstream ("prechain") input at one of your plants, with an optional transport route and its per-kg impacts.

id
string<uuid>
required
external_id
string | null
required

Your own code for this prechain product, or null if none.

product_instance_id
string<uuid>
required

UUID of the product instance used as the input.

plant_id
string<uuid>
required

UUID of the consuming plant.

transport_route
object | null
required

Transport distances to the consuming plant, one per modality (km).

impacts_per_kg
object[] | null
required

Characterized impacts of the input per kg. Null until computed.

transport_impacts_per_kg
object[] | null
required

Transport-only impacts per kg. Null until computed.