Update supplier company
Full replacement of editable fields. plant_id is an optional assertion
of the supplier company’s immutable parent plant. It may be omitted or
echoed. external_id is replaced: re-sending this company’s own
code succeeds unchanged, while a code held by another active supplier
company returns 409. See External IDs.
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 supplier company to update.
Body
Full replacement of editable fields. Every editable field is required. The immutable parent may be omitted or echoed from the current resource.
Your own code for this supplier company. Overwrites the stored code; pass
null to clear it. Must stay unique among your active supplier companies —
a code held by another returns 409 (see External IDs).
"SUPPLIER-ACME"
Name of the supplier company. Must be unique case-insensitively among
active supplier companies at this plant; duplicates return 409.
"Acme Materials GmbH"
Optional assertion of the resource ID. It must match the path id.
Optional assertion of the current parent plant. A different value
returns 422.
Response
Updated supplier company.
UUID of the supplier company.
Your own code for this supplier company. null when none is set.
UUID of the plant this supplier company belongs to.
"Acme Materials GmbH"