WorkOrder_Post (Post)
- Last UpdatedNov 06, 2025
- 2 minute read
| Post | WorkOrder_Post |
Resource Path:/api/WorkOrder
Add a work order, optionally created from a process.
To add a work order not created from a process: Include only the WO model properties in the call's request body.
To add a work order created from a process: In addition to the WO model properties in the call's request body, include the processId parameter.
processId (string)
Required. The ID of the process from which to create the work order.
The request body is of type Mes.WebApi.Models.WO.
The response body is of type Mes.WebApi.Models.WO.
When adding a work order that is not created from a process, the WO model properties are returned in the response body.
When adding a work order from a process, the WoFromProcess model properties described below are returned in the response body.
wo_id (string)
The work order ID.
process_id (string)
The ID of the process from which the work order was generated, if the work order was generated from a process.
item_id (string)
The ID of the final item being made, unless all its jobs are disassembly jobs, in which case this is the initial item.
req_qty (double)
The sum of items that the work order is required to produce based on the jobs that are run on the entity or entities identified as the production source for the line.
user_id (string)
The ID of the user who created the work order.
start_qty (double)
The quantity of items that the work order is expected to produce if there is no rejected production (that is, if all production is good). For lines, this quantity is based on the jobs that are run on the entity or entities identified as the production source for the line.
wo_desc (string)
The work order description.
spec_ver_id (string)
The specification version selected for all operations (if any) at the time the work order was created.
bom_ver_id (string)
The BOM version ID.
release_time (datetime)
The date and time when the work order is released, in the local time of the MES middleware that processed the call.
req_finish_time (datetime)
The date and time by when the work order is required to be completed, in the local time of the MES middleware that processed the call.
wo_priority (integer)
The work order priority. This is used as the default priority for jobs in the work order.
cust_info (string)
The customer information for the work order.
notes (string)
Notes about the work order.
mo_id (string)
The manufacturing order, for grouping different final parts.
target_sched_line_id (integer)
The ID of the production line to which the work order is assigned. This will be null if the work order is not assigned to a line.
queue_seq_no (integer)
The sequence number of the work order in the queue.