Delete recording

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"
}

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.

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.

1 Like

entendi, acredito que tenha misturados as informações, is there any native API to delete interactions based on policy?

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

1 Like

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