Change in Query for conversation aggregates API

Hello All,

We have implemented Query for conversation aggregates (/api/v2/analytics/conversations/aggregates/query) API in a code to pull all conversation IDs in a given interval. It used to work with below request.

Request Body:
{
"interval": "2020-10-21T00:00:00/2020-10-21T23:00:00",
"timeZone": "America/Chicago",
"groupBy": ["conversationId"]
}

But since last two weeks we haven't received any Conversation IDs. When we checked, the code was throwing error that Metrics are required. Now it is working with below parameters.

Request Body:
{
"interval": "2020-10-21T00:00:00/2020-10-21T23:00:00",
"timeZone": "America/Chicago",
"groupBy": ["conversationId"],
"metrics": ["tIvr"]
}

In API explorer, metrics field is still shown as optional. Could someone help us whether any update has been pushed for this API? Also where to look for this change update?

Thanks

Hello,

Yes, there was a change pushed recently in the API so that Aggregate and observation metric queries require specifying metrics in the request.
Specifying "metrics" was not mandatory before.

I have found a related Announcement on the Dev Forum, posted in June.

The various ways to get notified of changes are described here.

Regards,

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.