LineProduction_Get (Get)
- Last UpdatedNov 06, 2025
- 2 minute read
| Get | LineProduction_Get |
Resource Path:/api/line/{lineId}/LineProduction
| Name | Description | Data Type |
|---|---|---|
| lineId | Required. The line ID. | integer |
| filterType | 0 = Current hour 1 = Last n hours, where n is the number of hours specified by the filterDuration parameter 2 = Current shift 3 = Previous shift 4 = Current day 5 = Yesterday 6 = Current week 7 = Previous week 8 = Current month 9 = Previous month | integer |
| filterDuration | If the filter type is set to 1, last n hours, this is the value for n (that is, the number of hours). If no value is provided, the default value of 1 hour is used. | integer |
| summary | When true, indicates that the total Good and Rejected production for a line normalized to the UOM of the line's standard item should be returned. The default value is false. | boolean |
The response body is of type Array[Mes.WebApi.Models.LineProductionTotals].
To get all items that were produced on a line with an ID of 13 during the current shift:
api/line/13/LineProduction
To get the items that were produced on a line with an ID of 13 within the last week, with a normalized production total:
api/line/13/LineProduction?filterType=7&summary=true
Examples: Work Tasks Lookups
To get all items that were produced on a line during the current shift:
api/line/{lineID}/LineProduction
To get the items that were produced on a line within a time period, and to specify whether to returned a normalized production total:
api/line/{lineID}/LineProduction?filterType={filterType=}&summary={summary}