Hi Team,
I am trying to implement the below sample code ,
https://developer.mypurecloud.com/api/rest/v2/analytics/queue.html
with post query is like
POST https://api.mypurecloud.com/api/v2/analytics/queues/observations/query
##BODY
{
"detailMetrics": [ "oInteracting" ],
"filter": {
"type": "and",
"clauses": [
{
"type": "or",
"predicates": [
{
"dimension": "queueId",
"value": "c6fc6f57-4c1e-4812-980a-5154f500b5c6"
},
{
"dimension": "queueId",
"value": "ad97882c-2806-4a6e-8a19-ee5531348638"
}
]
},
{
"type": "or",
"predicates": [
{
"dimension": "mediaType",
"value": "voice"
},
{
"dimension": "mediaType",
"value": "chat"
}
]
}
]
}
}
================
My Question is which is the following is the correct way to make the call to the API,
1)instance/api/v2/analytics/queues/observations/query?{
"detailMetrics": [ "oInteracting" ],
"filter": {
"type": "and",
"clauses": [
{
"type": "or",
"predicates": [
{
"dimension": "queueId",
"value": "c6fc6f57-4c1e-4812-980a-5154f500b5c6"
},
{
"dimension": "queueId",
"value": "ad97882c-2806-4a6e-8a19-ee5531348638"
}
]
},
{
"type": "or",
"predicates": [
{
"dimension": "mediaType",
"value": "voice"
},
{
"dimension": "mediaType",
"value": "chat"
}
]
}
]
}
}
2)instance/api/v2/analytics/queues/observations/query?body={
"detailMetrics": [ "oInteracting" ],
"filter": {
"type": "and",
"clauses": [
{
"type": "or",
"predicates": [
{
"dimension": "queueId",
"value": "c6fc6f57-4c1e-4812-980a-5154f500b5c6"
},
{
"dimension": "queueId",
"value": "ad97882c-2806-4a6e-8a19-ee5531348638"
}
]
},
{
"type": "or",
"predicates": [
{
"dimension": "mediaType",
"value": "voice"
},
{
"dimension": "mediaType",
"value": "chat"
}
]
}
]
}
}