LineEntitySource_Get (Get)
- Last UpdatedNov 06, 2025
- 2 minute read
| Get | LineEntitySource_Get |
Resource Path:/api/line/{lineId}/lineEntitySource
Get the production or bottleneck entities on a line, optionally within a specified time period.
To get all production or bottleneck entities: Include only the parameters described in the Parameters table.
To filter the production or bottleneck entities by a time period: In addition to the parameters described in the Parameters table, include the following parameters.
filterType (integer)
The ID of the time period filter type to use.
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
filterDuration (string)
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.
| Name | Description | Data Type |
|---|---|---|
| lineId | Required. The line ID. | integer |
| sourceType |
| integer |
The response body is of type Array[Mes.WebApi.Models.EntitySource].
To get the entities in a line with an ID of 13 that have been production entities during the current shift:
api/line/13/lineEntitySource?sourceType=Production
To get the entities in a line with an ID of 13 that have been bottleneck entities within the last hour:
api/line/13/lineEntitySource?sourceType=Bottleneck&filterType=0
Examples: Work Tasks Lookups
To get the entities in a line that have been production or bottleneck entities during the current shift:
api/line/{lineID}/lineEntitySource?sourceType={sourceType}
To get the entities in a line that have been production or bottleneck entities within a time filter:
api/line/{lineID}/lineEntitySource?sourceType={sourceType}&filterType={filterType}