Legacy Dev Forum Posts

 View Only

Sign Up

Agent_performance_summary_view

  • 1.  Agent_performance_summary_view

    Posted 06-05-2025 18:19

    DanielaZulueta | 2021-06-09 17:04:13 UTC | #1

    Hi, how are you?

    I am consuming the / api / v2 / analytics / reporting / export endpoint and sending the following json through the body:

    { "name": "Campaign load test using api for tokenized", "timeZone": "GMT-3", "exportFormat": "CSV", "interval": "2021-06-01T00: 00: 00.000Z / 2021-06-07T00: 00: 00.000Z", "period": "P1D", "viewType": "AGENTPERFORMANCESUMMARY_VIEW", "filter": { "showSecondaryStatus": "true" }, "read": true, "locale": "en-us" }

    The answer is:

    { "message": "select at least one media type to view", "code": "general.bad.request", "status": 400, "contextId": "e4829232-f910-4c1c-ae04-3f7d56542fa1", "details": [], "mistakes": [] }

    I don't understand exactly what it is: "select at least one media type to view"

    Thank you


    John_Carnell | 2021-06-09 17:12:04 UTC | #2

    Hi Daniela,

    The error message indicates you have to provide a view filter with the mediaType attribute set (e.g. callback, chat, co-browse, email, message, screen share, video or voice). Without the filter, the query will fail.

    I hope that helps.

    Thanks, John Carnell Manager, Developer Engagement


    DanielaZulueta | 2021-06-09 17:18:42 UTC | #3

    Yes, I have tried that, but the error persists

    Body:

    { "name": "Prueba subida campaña por api para tokenizado", "timeZone": "GMT-3", "exportFormat": "CSV", "interval": "2021-06-01T00:00:00.000Z/2021-06-07T00:00:00.000Z", "period": "P1D", "viewType": "AGENTPERFORMANCESUMMARY_VIEW", "filter": { "showSecondaryStatus": "true" }, "ViewFilter": { "mediaTypes": ["callback", "voice"] }, "read": true, "locale": "en-us" }

    { "message": "select atleast one media type for the view", "code": "general.bad.request", "status": 400, "contextId": "e7a51ab1-935e-4674-90e1-ddb408630cd5", "details": [], "errors": [] }

    what else could i do?


    tim.smith | 2021-06-09 17:33:17 UTC | #4

    Please refer to the documented schema for the properties you can use: POST /api/v2/analytics/reporting/exports; ViewFilter is not a property. The error is saying you need to add the media type property on the filter, which exists as the property filter.


    DanielaZulueta | 2021-06-09 18:15:22 UTC | #5

    Ready, I was not understanding where to add the filters.

    { "name": "Test campaign upload by api for tokenized", "timeZone": "GMT-3", "exportFormat": "CSV", "interval": "2021-06-01T00: 00: 00.000Z / 2021-06-07T00: 00: 00.000Z", "period": "P1D", "viewType": "AGENTPERFORMANCESUMMARY_VIEW", "filter": { "showSecondaryStatus": "true", "mediaTypes": ["callback"] }, "read": true, "locale": "en-us" }

    Thank you


    system | 2021-07-10 18:15:23 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: 11165