Update a cost line
Partial-update an existing cost line by its ULID. Only the fields
supplied in updates are written; omitted fields stay as-is.
Triggers a per-order COGS recalculation downstream (except for
variable and fixed).
Required scope: costs:write.
Authorizations
Your Upstack API key. Starts with upstack_.
The pixel id the request targets.
Path Parameters
Body
Partial update — every field of the corresponding line shape is
optional in updates. Only the supplied fields are written;
omitted fields stay as-is.
The five cost-line surfaces. Each value selects the corresponding
line shape in the line (POST) or updates (PUT) field of the
request body.
order, gateway, shipping, variable, fixed Subset of fields from the line shape selected by costType.
Response
The updated cost config.