Combining Aggregation Methods in one Resample API Request

Is there a way to perform multiple resample methods in one API request? For example, to sum the first variable while returning the average of the second variable, request:

POST https://industrial.api.ubidots.com/api/v1.6/data/stats/resample/
{
“variables”: [“variable1”, “variable2”],
“aggregation”: [“sum”, “mean”],
“period”: “1H”,
“join_dataframes”: true,
}

Hello @drths,

Returning multiple data aggregation types using the “/api/v1.6/data/stats/resample/” endpoint isn’t supported, you’ll need to do each one separately.

–David

Fair enough. Thanks for clarifying!