How to get all tasks that contain a list of candidate groups with a single camunda request

I need a parameter that can take multiple candidate groups. The “taskHadCandidateGroup” parameter only takes one, so I have to send multiple requests.
my request:
const fetchTasksForGroup = (group) => {
const groupQuery = taskHadCandidateGroup=${group};
const endpoint = ${camundaUrl}/engine-rest/history/task +
?sortBy=startTime&sortOrder=desc&processDefinitionKey=${process.key} +
&startedAfter=${dateString}&${groupQuery}${filterQuery};

            return HttpClient.Get(endpoint);
        };

        Promise.all(groups.map(fetchTasksForGroup))
            .then(results => {
                const combinedResults = results.flat();

}