Why is this setting causing my Analytics API call to fail with a 400 Bad Request? I am building a Laravel dashboard that pulls queue performance metrics. I need to group the data by both queue and mediaType. According to the Genesys Docs, I should be able to pass multiple group-by fields in the groupBy array.
Here is my Guzzle request setup:
$body = [
'query' => [
'type' => 'interval',
'interval' => 'PT1H',
'from' => '2023-10-01T00:00:00.000Z',
'to' => '2023-10-01T23:59:59.999Z'
],
'groupBy' => ['queue', 'mediaType'],
'metrics' => ['abandonedCount', 'handledCount']
];
$response = $this->client->post('api/v2/analytics/queues/summary', [
'json' => $body
]);
The error response says groupBy is invalid. I tried swapping the order and even adding entityId but nothing works. Am I missing a specific syntax requirement for multi-field grouping in the PHP SDK or raw JSON payload? My timezone is America/Mexico_City so I am handling UTC conversion manually before sending.