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