Skip to main content

Apply Line Options to Manufacturing Order

POST 

/api/manufacturing/manufacturing-orders/:manufacturingOrder/apply-line-options

Re-copy a manufacturing order's customer options from its sales order line and clear line_options_stale. Use it after the line's options changed while the order was already confirmed or in progress.

Required scope: manufacturing:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token (scope manufacturing:write).

The order's line_options snapshot is replaced. Each step receives the options its recipe step names (option_names), except steps that have started or were edited on this order — those keep their values unless listed in force_steps, in which case they are overwritten and their edited mark is cleared.

Body (optional):

  • force_steps (integer[], nullable) — IDs of this order's operations to overwrite even though they started or were edited. Each must belong to this order.

Response: the full manufacturing order.

Returns 422 when the order is closed or cancelled, or is not linked to a sales order line.

Request​

Responses​

OK

Response Headers
    Content-Type