thought Postman i am trying to hit below Post api https://api.mypurecloud.ie/api/v2/analytics/conversations/aggregates/query
and i am passing below payload
{
"interval": "2024-08-05T00:00:00.000Z/2024-08-6T00:00:00.000Z",
"granularity": "P1D",
"groupBy": [
"queueId"
],
"metrics": [
"nAnswered",
"nAbandon"
],
"filter": {
"type": "and",
"predicates": [
{
"dimension": "mediaType",
"value": "voice"
}
]
}
}
getting error response as below for nAnswered
{
"message": "Value [nAnswered] is not valid for field type [ConversationAggregateMetric]. Allowable values are: nBlindTransferred, nBotInteractions, nCobrowseSessions, nConnected, nConsult, nConsultTransferred, nError, nOffered, nOutbound, nOutboundAbandoned, nOutboundAttempted, nOutboundConnected, nOverSla, nStateTransitionError, nTransferred, oExternalMediaCount, oMediaCount, oMessageCount, oMessageSegmentCount, oMessageTurn, oServiceLevel, oServiceTarget, tAbandon, tAcd, tActiveCallback, tActiveCallbackComplete, tAcw, tAgentResponseTime, tAlert, tAnswered, tBarging, tCoaching, tCoachingComplete, tConnected, tContacting, tDialing, tFirstConnect, tFirstDial, tFlowOut, tHandle, tHeld, tHeldComplete, tIvr, tMonitoring, tMonitoringComplete, tNotResponding, tPark, tParkComplete, tShortAbandon, tTalk, tTalkComplete, tUserResponseTime, tVoicemail, tWait",
"code": "invalid.value",
"status": 400,
"contextId": "c823a04d-8c94-4acd-836a-ca92323c657d",
"details": [],
"errors": []
} and getting error response as below for nAbandon
{
"message": "Value [nAbandon] is not valid for field type [ConversationAggregateMetric]. Allowable values are: nBlindTransferred, nBotInteractions, nCobrowseSessions, nConnected, nConsult, nConsultTransferred, nError, nOffered, nOutbound, nOutboundAbandoned, nOutboundAttempted, nOutboundConnected, nOverSla, nStateTransitionError, nTransferred, oExternalMediaCount, oMediaCount, oMessageCount, oMessageSegmentCount, oMessageTurn, oServiceLevel, oServiceTarget, tAbandon, tAcd, tActiveCallback, tActiveCallbackComplete, tAcw, tAgentResponseTime, tAlert, tAnswered, tBarging, tCoaching, tCoachingComplete, tConnected, tContacting, tDialing, tFirstConnect, tFirstDial, tFlowOut, tHandle, tHeld, tHeldComplete, tIvr, tMonitoring, tMonitoringComplete, tNotResponding, tPark, tParkComplete, tShortAbandon, tTalk, tTalkComplete, tUserResponseTime, tVoicemail, tWait",
"code": "invalid.value",
"status": 400,
"contextId": "ab1336a8-aa76-4ca0-b526-74a510a72707",
"details": [],
"errors": []
}
could you please provide me the correct endpoint and payload details to fetch data for nAbandon and nAnswered this data is required to calculate Answer % and Abandon % .
Thanks