V3_Consumption_SetLotData (Put)
- Last UpdatedNov 06, 2025
- 1 minute read
| Put | V3_Consumption_SetLotData |
Resource Path:/api/v3/Consumption/SetLotData
| Name | Description |
|---|---|
| trans_id | Used to supply the ID of the transaction if the call is taking part in a transaction. |
The request body is of type Mes.WebApi.Models.V3.Prod.SetLotData.
Required. The properties that identify the BOM position and job and specify the lot information.
The response body is of type Mes.WebApi.Models.V3.Prod.SetLotData.
OKThe following model properties are required to identify the item BOM position and job:
- wo_id
- oper_id
- seq_no
- bom_pos
Note the following about this method:
- The method updates the corresponding record in the Job_Bom table.
- This method works the same as the Production/SetLotData method. The bom_pos property value in the model specifies whether the item is being produced (0) or consumed (positive values).
- The method is useful if the lot information for an item being produced or consumed by a job is either not defined or needs to be changed while the job is running. For example, the method can set the produced lot information prior to recording consumption information so that the item consumption record will have a genealogy relationship to the produced lot prior to recording any production.
- The lot information that's set by this method will be used for subsequent recording of production/consumption for the BOM item and job. Note that lot information values in subsequent production/consumption Posts, if included, take precedence over these values.