Swetha_K | 2025-03-10 20:07:19 UTC | #1
Hello, We are trying to retrieve the UserEvaluations data for a time interval (precisely a day). However when tried querying the below Api with startTime and endTime parameters , the api errors out with a message
Request: GET https://api.usw2.pure.cloud/api/v2/quality/evaluations/query?startTime=2025-03-10T00:00:00.000Z&endTime=2025-03-11T00:00:00.000Z
Response: { "message": "Must specify one of 'conversationId', 'agentUserId', or 'evaluatorUserId', or 'agentTeamId', or 'assigneeUserId'", "code": "bad.request", "status": 400, "contextId": "789a60ae-07a2-4424-b2ef-c63eca5c304a", "details": [], "errors": [] }
I understand the message is saying that another parameter is required. But, none of the filters allow us to efficiently get this data (for the entire organization). • By Conversation would be too many queries. • By any of the agent fields would be very inefficient and most queries would return nothing. • We can’t figure out how to get a list of all evaluators so we’d be able to loop through those. • The only one we think would work is by agentTeamId – but we created evaluations for users on a team, and the teamId wasn’t populated.
Is there any way that we could get this data without specifying any of the above filters. And if we have to specify a filter, is there any way to do it efficiently?
Thanks.
Eos_Rios | 2025-03-10 20:26:13 UTC | #2
But, none of the filters allow us to efficiently get this data (for the entire organization).
Correct.
See previous threads for ideas -
https://developer.genesys.cloud/forum/t/getting-evaluations-from-yesterday/21637/2
https://developer.genesys.cloud/forum/t/get-evaluations-from-a-time-range-of-conversationdate/6071
And this feature request https://genesyscloud.ideas.aha.io/ideas/WEM-I-316
Swetha_K | 2025-03-10 20:47:11 UTC | #3
Thank you for the response , I will look into the info provided and get back for any more questions.
system | 2025-04-09 20:47:15 UTC | #4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 32136