Hi, i am trying to send a post request through API Explorer, for this endpoint
POST /api/v2/analytics/users/aggregates/query
Query for user aggregates
with input:
{
"interval": "2023-02-26T21:00:00.000Z/2023-02-27T20:59:00.000Z",
"filter": {
"predicates": [
{
"type": "dimension",
"dimension": "userId",
"operator": "exists"
}
],
"type": "and"
},
"metrics": [
"tAgentRoutingStatus",
"tOrganizationPresence",
"tSystemPresence"
]
}
i am getting response: 500 Internal Server Error
{
"message": "Server resources are unable to complete the request.",
"code": "internal.server.error",
"status": 500,
"messageParams": {},
"contextId": "db8dd7bc-970a-4383-a4cc-d6158d630a51",
"details": [],
"errors": []
}
It seems that the problem from the operator "exists", i need this operator to list all existing users for the aggregation. when i give a value ("picking an agent")
it gives me error 400:
{
"message": "value must be null when using the exists/notExists operators",
"code": "bad.request",
"status": 400,
"messageParams": {},
"contextId": "380d6574-85fa-4070-8d77-a2817a5c6c66",
"details": [],
"errors": []
}
Can anybody advice about this matter?
Thank you.