Renan_Zanata | 2023-06-14 17:01:48 UTC | #1
Good afternoon,
I'm trying to delete some interactions through the API "/api/v2/userrecordings/{recordingId}", but it's returning 404
{ "message": "Workspace document not found: XXXXXXXXXX", "code": "not.found", "status": 404, "messageParams": {}, "contextId": "XXXXXXXXXX", "details": [], "errors": [] }
But using the same recordingId in other APIs such as "/api/v2/conversations/{conversationId}/recordingmetadata/{recordingId}" it returns a 200 OK.
{ "id": "XXXXXXXXXX", "conversationId": "XXXXXXXXXXXXXXX", "startTime": "2023-06-14T00:06:40.732Z", "endTime": "2023-06-14T00:07:26.972Z", "media": "audio", "annotations": [], "fileState": "AVAILABLE", "maxAllowedRestorationsForOrg": 100, "remainingRestorationsAllowedForOrg": 100, "sessionId": "XXXXXXXXXX", "region": "us-east-1", "selfUri": "/api/v2/conversations/XXXXXXXXXX/recordingmetadata/XXXXXXXXXX" }
tim.smith | 2023-06-14 17:03:51 UTC | #2
If you believe the 404 response to be inaccurate, please open a case with Genesys Cloud Care to investigate as we do not have access to your org's data via the forum.
Langsford_Jay | 2023-06-14 17:21:14 UTC | #3
User recordings are different than policy based recordings of interactions for a queue. So, it is not surprising if you take a recordingId of one type and it isn't found using an API that queries the other type.
https://help.mypurecloud.com/faqs/what-is-the-difference-between-a-user-recording-and-a-policy-based-recording/
Renan_Zanata | 2023-06-14 17:49:20 UTC | #4
entendi, acredito que tenha misturados as informações, is there any native API to delete interactions based on policy?
Johnson_Tse | 2023-06-14 19:07:10 UTC | #5
You can invoke the API, PUT /api/v2/conversations/{conversationId}/recordings/{recordingId} and provide the deleteDate on that specific recording, and that recording would be deleted on the date specified
system | 2023-07-15 19:06:18 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: 20442