Genesys Cloud - Main

 View Only
Discussion Thread View
  • 1.  Media retention policy API

    Posted 07-19-2021 09:51
    Hi dear community.

    I cant find proper documentation to understand how to use media retention policies API except of this https://developer.genesys.cloud/api/rest/v2/recording/#post-api-v2-recording-mediaretentionpolicies.

    I want to keep all emails recordings from range "2021-06-01T21:00:00.000Z/2021-06-20T21:00:00.000Z" in the GC archive for 20 days, after that to delete recordings.

    What will happen after I post this body?

    {
        "name": "test media reteniton policy",
        "description": "test media reteniton policy",
        "enabled": true,
        "mediaPolicies": {
            "emailPolicy": {
                "actions": {
                    "retainRecording": true,
                    "deleteRecording": false,
                    "alwaysDelete": false,
                    "retentionDuration": {
                        "archiveRetention": {
                            "days": 20,
                            "storageMedium": "CLOUDARCHIVE"
                        }
                    }
                },
                "conditions": {
                    "dateRanges": [
                        "2021-06-01T21:00:00.000Z/2021-06-20T21:00:00.000Z"
                    ]
                }
            }
        }
    }

    #QualityManagement

    ------------------------------
    Taras Buha
    taras@noralogix.com
    www.noralogix.com
    ------------------------------


  • 2.  RE: Media retention policy API

    Posted 07-20-2021 06:03
    Hi,
    From the interaction GUI it is possible to set Archive Date.

    PUT request
    https://apps.mypurecloud.ie/platform/api/v2/conversations/{conversationId}/recordings/{recordingId}
    ```json
    {
        "archiveDate""2021-07-20T09:56:25.432Z",
        "recordingId""rid",
        "conversationId""cid"
    }
    ```
    Do you know if its possible to implement something similar in a single bulk operation for all conversations in specific date range?

    ------------------------------
    Taras Buha
    taras@noralogix.com
    www.noralogix.com
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources