Create Manual MO Operation
POST/api/manufacturing/manufacturing-orders/:manufacturingOrder/operations
Create a manual operation against a specific MO. The new row is stamped source='manual' with bom_operation_id=null.
Body fields:
sequence(required, integer, min 0) — ordering on the MO; can interleave with from_bom rowsname(required, string, max 255)type(required, enum) — one of: process, setup, per_unit, fixed_cost. Stored on the row as operation_type.work_center_id(optional, integer, exists:work_centers,id)default_operator_id(optional, integer, exists:users,id) — planned operator (distinct from operator_id which is set when the timer starts)expected_duration_minutes(optional, integer, min 0)hourly_rate(optional, numeric, min 0)notes(optional, string, max 1000)
Refused with 422 {code:'mo_locked'} when MO status is completed | closed | cancelled.
Request
Responses
- 201
- 422
Created
Response Headers
Content-Type
Unprocessable Entity
Response Headers
Content-Type