I need to get the evaluations from a specific calibration. To do this, I have to call /api/v2/quality/calibrations/{calibrationId}
However, it requires a calibrator id
So I used /api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId} but it does not seem to return the calibrator id. See below for an example (truncated). Note that the "calibration" section does not contain the "calibrator id" like the documentation suggests for this API query, it only returns the calibration id, averageScore, highScore, lowScore and selfUri. But no information on the calibrator.
Calibration IDs can be obtained from GET /api/v2/quality/calibrations. Each result in the set will have the calibration Id (id) and the calibrator ID (calibrator.id).
Sorry, I missed that the calibratorId parameter was required. You can use GET /api/v2/users to retrieve the list of users and then get the calibrations for each one.
I'm checking with the dev team to see if there's a better way or if calibratorId can be made optional.
Ok I think it is possible to have a better way by making calibratorId optional in /api/v2/quality/calibrations/{calibrationId} or in /api/v2/quality/calibrations. I have more than 300 users in my organization.
Thank you for your investigation.
I've checked with the dev team and it was intentionally designed this way. You must know the ID of the user that created the calibration in order to access it.
If you can describe your use case for accessing calibrations without knowing the user, I can submit it as an enhancement request.
In fact, I develop a program that gather the entire daily conversations of our organization and store it with all its related informations (segments, sessions, participants, evaluations, users, queues, ...) in a relational database. The use case here is to be able to distinguish real evaluations from ones related to a calibration in order to note and remunerate correctly agents of our call center. So as we have many calibrators (and their role can change), we design a new table that stores daily calibrations data :