Legacy Dev Forum Posts

 View Only

Sign Up

Queries Evaluations Endpoint /api/v2/quality/evaluations/query completion date not matching with Genesys UI

  • 1.  Queries Evaluations Endpoint /api/v2/quality/evaluations/query completion date not matching with Genesys UI

    Posted 06-05-2025 18:07

    Dileep_kaRanki | 2024-03-28 06:23:02 UTC | #1

    Hi Team,

    Queries Evaluations Endpoint /api/v2/quality/evaluations/query related timestamps not matching with completion date in Genesys UI. We tried to use releaseDate, changedDate and revisionCreatedDate returned by the API. But none of the timestamps are matching with completed timestamp in Genesys UI.

    Could someone dig into this issue


    Eos_Rios | 2024-03-28 13:03:43 UTC | #2

    Did you account for the timestamps in the API being in UTC and the timestamps you see in the Genesys UI being local to whoever is looking at them?


    Dileep_kaRanki | 2024-03-28 13:12:38 UTC | #3

    Eos_Rios, post:2, topic:25450, full:true
    Did you account for the timestamps in the API being in UTC and the timestamps you see in the Genesys UI being local to whoever is looking at them?
    The timezone related to Genesy UI is in UTC only.

    Eos_Rios | 2024-03-28 13:13:22 UTC | #4

    Then you may need to open a customer care case to report and investigate the difference.


    Dileep_kaRanki | 2024-03-29 14:26:42 UTC | #5

    Hi Team, Opened a case with Genesys and below is the response. **

    "api/v2/quality/evaluations/query" will not provide the exact submitted time, which is where the timestamps in our UI come from.

    **

    We should use "/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}?expand=versionHistory" You can notate the "version" provided by the API in the response to get the order as well as using the "/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}" API along with expanding version history to get the exact time each evaluation was submitted for the conversation

    Below is the json response for "/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}?expand=versionHistory"

    "versionHistory": {
    
      "total": 2
    
      "entities": [
    
       {
    
        "id": "********",
    
        "submittedDate": "2024-01-03T16:50:41.948Z",
    
        "version": 2,
    
        "status": "FINISHED",
    
        "selfUri": "/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}"
    
       },
    
       {
    
        "id": "********",
    
        "submittedDate": "2023-12-06T20:36:38.055Z",
    
        "version": 1,
    
        "status": "RETRACTED",
    
        "selfUri": "/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}"
    
       }
    ]
    }

    So is there any other options or any workarounds to use Endpoint1 instead of Endpoint2


    system | 2024-04-29 14:27:31 UTC | #6

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 25450