Genesys Cloud Developer Forum

Bulk Delete Recordings with specific Wrapup

Hi,

I am trying to bulk delete all recordings with a specific wrapup code, has anybody completed this or could point out what is wrong here?

{
"action": "DELETE",
"actionDate": "2021-02-18T12:00:00.000Z",
"integrationId": "",
"includeScreenRecordings": true,
"conversationQuery": {
"segmentFilters": [
{
"type": "and",
"clauses": [
{
"type": "and",
"predicates": [
{}
]
}
],
"predicates": [
{
"type": "dimension",
"dimension": "wrapUpCode",
"propertyType": "uuid",
"property": "ecd1e097-7c8c-423f-8607-df1d855641xx",
"operator": "matches",
"value": "ecd1e097-7c8c-423f-8607-df1d855641xx",
"range": {}
}
]
}
],
"order": "asc",
"orderBy": "conversationStart",
"interval": "",
"limit": 100,
"startOfDayIntervalMatching": true
}
}

Thanks

Hello,

This would probably look something like this.
Note that "interval" is mandatory. I don't know if there is a maximum value for this parameter (I mean maximum number of days for the interval).

{
    "action": "DELETE",
    "actionDate": "2021-02-18T12:00:00.000Z",
    "includeScreenRecordings": true,
    "conversationQuery": {
        "segmentFilters": [
            {
                "type": "and",
                "predicates": [
                    {
                        "type": "dimension",
                        "dimension": "wrapUpCode",
                        "operator": "matches",
                        "value": "ecd1e097-7c8c-423f-8607-df1d855641xx"
                    }
                ]
            }
        ],
        "order": "asc",
        "orderBy": "conversationStart",
        "interval": "2021-02-01T23:00:00.000Z/2021-02-18T23:00:00.000Z",
        "startOfDayIntervalMatching": true
    }
}

Regards,

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