Field reference
ScreenTypeId values
screenTypeId identifies which dashboard screen context the widget belongs to:
Use
screenTypeId=1 for revenue, sales, and summary widgets. Use screenTypeId=2 for per-machine operational widgets.
EntityId
entityId scopes the widget data to a specific entity. The meaning depends on the widget type:
- Operator-level widgets: pass the Operator ID (ActorID)
- Machine-level widgets: pass the Machine ID
- Omit or pass
nullto retrieve data across all entities the authenticated user has access to
WidgetTypeId
Obtain the list of valid widget type IDs for a given screen by calling:widgetTypeId and widgetName. Use the name to identify which widget you need, then use its ID in subsequent data requests. The IDs are defined in the Cortex Reports service database and may vary by environment.
See the complete Widgets ID List for a reference table of all known widget IDs.
Filter names
Filter names are widget-specific. The following are commonly used across revenue and reporting widgets:MachineId via
entityId vs filter: Some widgets accept the machine ID through the entityId field; others accept it as a MachineId filter entry. If the widget is scoped to the machine screen (screenTypeId=2), prefer entityId. If it is a dashboard widget (screenTypeId=1), use the MachineId filter. The exact behavior depends on the widget’s stored procedure implementation.Filter types
Thetype field in a filter is a hint used by the backend to parse the value string:
Multiple filters in one request
Thefilters field is an array - multiple filters can be combined in a single request. For example, filtering by date range, machine ID, and grouping in one call:
Notes
- The shape of the
datafield inWidgetDataResponseDtois dynamic and varies per widget type. - Widget type IDs are defined in the Cortex Reports service database and map to screen types via the
widget_dashboard_compatibilitycolumn (ScreenTypeId). - The Lynx API acts as an authenticated pass-through proxy to Cortex Reports. It does not modify or validate filter contents beyond basic deserialization.