Legacy Dev Forum Posts

 View Only

Sign Up

Trying to bulk delete recordings

  • 1.  Trying to bulk delete recordings

    Posted 06-05-2025 18:24

    Chris_Dalziel | 2022-12-16 15:16:43 UTC | #1

    I've been trying to use the /api/v2/recording/jobs to create a job to delete specific recordings in a division and queue. When i run the job I get a return below. { "message": "Unable to infer predicate type. Please provide an explicit value.", "code": "bad.request", "status": 400, "messageParams": {}, "contextId": "40aea0b4-9d2b-40f1-a227-5c1039ab017c", "details": [], "errors": []

    The API I am trying is listed below. { "action": "delete", "actionDate": "2022-12-15T19:28:31.508Z",

    "includeRecordingsWithSensitiveData": false, "includeScreenRecordings": true, "clearExport": false, "conversationQuery": { "conversationFilters": [ { "type": "or", "clauses": [ { "type": "and", "predicates": [ {} ] } ], "predicates": [ { "type": "dimension", "dimension": "divisionID",

    "operator": "matches", "value": "362753ba-25ac-4e10-833c-d44f1d5c5659", "range": {} } ] } ], "segmentFilters": [ { "type": "or", "clauses": [ { "type": "and", "predicates": [ {} ] } ], "predicates": [ { "type": "dimension", "dimension": "queueId",

    "operator": "matches", "value": "0f033294-14f7-46a0-9ccf-9b68c95570b3", "range": {} } ] } ],

    "order": "asc", "orderBy": "conversationStart", "interval": "2022-12-15T01:01:01/2022-12-15T19:19:01", "limit": "", "startOfDayIntervalMatching": true } }

    Can someone tell me what I am missing?


    tim.smith | 2023-01-03 16:24:21 UTC | #2

    Chris_Dalziel, post:1, topic:17662
    "conversationFilters": [ { "type": "or", "clauses": [ { "type": "and", "predicates": [ {} ] } ],

    You definitely shouldn't send empty configs like this. There are a few other instances of completely empty configs as well. Try removing sections of the query one at a time until you get a successful query. That will identify the specific part that caused the error, then consider the error message in context of the offending section.


    system | 2023-02-03 16:24:25 UTC | #3

    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: 17662