So I’m seeing a very odd bug with the Genesys Cloud Analytics API. I have an Azure Function (.NET 6) that aggregates call data for the last 90 days. The function is triggered by a timer and uses Managed Identity to authenticate. When I send a request to /api/v2/analytics/conversations/details/query with a date range covering 90 days, I get a 413 Entity Too Large error.
Here is the request body:
{
"dateFrom": "2023-10-01T00:00:00.000Z",
"dateTo": "2023-12-31T23:59:59.999Z",
"groupBy": ["conversationId"],
"select": ["duration", "wrapUpCode"],
"queryFilter": {
"type": "and",
"filters": [
{
"type": "greaterOrEquals",
"field": "duration",
"value": "1"
}
]
}
}
The error message is:
413 Entity Too Large. The request entity is too large.
I know the API has limits, but splitting the query into smaller chunks in my code feels inefficient. Is there a way to handle this larger range without hitting the 413 error, or do I need to refactor the loop in my Azure Function to process weekly intervals?