Update prechain product
Full replacement of editable fields. Send external_id and
transport_route; immutable references may be omitted or echoed from the
current resource, but cannot be changed. Returns the prechain product with
recomputed per-kg impacts.
Authorizations
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
UUID of the prechain product to update.
Body
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.
Your own code for this prechain product. Send the code you want or
the one it already carries; null clears it.
Replaces the transport route (distances per modality, km).
Optional assertion of the resource ID. It must match the path id.
Optional assertion of the current upstream product instance. A
different value returns 422.
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.
Your own code for this prechain product, or null if none.
UUID of the product instance used as the input.
UUID of the consuming plant.
Transport distances to the consuming plant, one per modality (km).
Characterized impacts of the input per kg. Null until computed.
Transport-only impacts per kg. Null until computed.