groupByTo

Sets an upper bound for the time series key extension values that groupByIdAndTime considers.

Applies to: timeseries, together with groupByIdAndTime

Value: a comma-separated list of values, one for each field of the time series key extension, in the order in which the meta service lists them. Dates are written as for from; numbers as numbers.

For each key extension field only values less than or equal to the given bound are considered when the first or latest record is selected. For example, groupByIdAndTime=latest&groupByTo=3 selects, for each id and time, the record with the highest extension value up to and including 3.

https://consumer.qa.data.spglobal.com/namespace/Entity/timeseries?id=ID1&groupByIdAndTime=latest&groupByTo=3

groupByTo has no effect without groupByIdAndTime. A value that is not a valid date or number is refused with the error INVALID_PARAMETER_VALUE.