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.
manufacturing:writeGrant 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
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.