Consumption_Post (Post)
- Last UpdatedNov 06, 2025
- 2 minute read
| Post | Consumption_Post |
Resource Path:/api/Consumption
Add item consumption for a job.
You can add consumption by identifying the job as described below. For all three approaches, the Consumption model properties are required in the request body.
Add item consumption for the currently running job on an entity, specifying the entity ID:
In the call, provide the entId parameter and optionally the fromEntId parameter, which are described in the Parameters table.
Add item consumption for the currently running job on an entity, specifying the entity name.
In the call, provide the entName parameter and optionally the other parameters described below:
entName (string)
Required. The entity name.
siteName (string)
The name of the site to which the entity belongs.
fromEntName (string)
The name of the storage entity from which consumption is occurring.
fromSiteName (string)
The name of the site to which the storage entity belongs.
Add item consumption for a specific job.
In the call, provide the parameters as described below:
wo_id (string)
Required. The job's work order ID.
oper_id (string)
Required. The job's operation ID.
seq_no (integer)
Required. The job's sequence number.
entName (string)
Required. The entity name.
siteName (string)
The name of the site to which the entity belongs.
fromEntName (string)
The name of the storage entity from which consumption is occurring.
fromSiteName (string)
The name of the site to which the storage entity belongs.
| Name | Description | Data Type |
|---|---|---|
| entId | Required. The entity ID. | integer |
| fromEntId | The ID of the storage entity from which consumption is occurring. | integer |
The request body is of type Mes.WebApi.Models.Consumption.
The response body is of type Mes.WebApi.Models.Consumption.