Set Maximum Interaction Data Retention Time afterwards

Hello,

I want to set a retention time for recording afterwards. There are already a lot of conversations even with recordings for the last two years.

I took that endpoint to set that threshold afterwards:

PUT https://api.mypurecloud.de/api/v2/analytics/dataretention/settings

I want to set 90 days and got that response:

{
    "message": "Analytics data retention cannot be updated due to conflict with existing policies and/or recordings. To see the recording conflicts, make the request: GET api/v2/recordings/retention/query?retentionThresholdDays=90. To see the policy conflicts, make the request: GET api/v2/recording/mediaretentionpolicies?enabled=true&deleteDaysThreshold=90.",
    "code": "analytics.data.retention.update.conflict",
    "status": 409,
    "contextId": "38e0dc66-bb04-4d46-8936-c2e923e91f14",
    "details": [],
    "errors": []
}

I have no media retention policies set yet. So policy list is empty.

So I run that GET api/v2/recordings/retention/query?retentionThresholdDays=90 and get a lot of conversations.
What is not clear for me, are this returned list the conversations which are in conflict to that theshold day what should this list means? Documentation is absolutely bad for this.

Secondly I understand that there are recordings which are older then that threshold day of 90 days. So I run a recording bulk job with that request body:

{
  "action": "DELETE",
  "clearExport": true,
  "includeScreenRecordings": true,
  "conversationQuery": {
    interval": "2018-01-01T00:00:00.000+02:00/2023-05-15T23:59:59.000+02:00",
    "orderBy": "conversationStart",
    "order": "asc",
    "startOfDayIntervalMatching": true
  },
  "actionAge": 90,
  "screenRecordingActionAge": 90
}

So my idea was that bulk job should set the 90 days recording retention treshold for every conversation in the past which are over that threshold value (yesterday minus 90 days and I got the 2023-05-15). Job was running and was finished sucessfully.

After it I tried to set that dataretention settings again but still got the same error as above.
What I missed here?

Thank you and best regards,
Christian.

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