Hello, I by no means am a developer, trying to wrap my head around some of this stuff. I've been tasked with trying to delete recordings of certain users within Genesys. I think from the API explorer, I created the below. I just don't know what it will do when i execute? or what my testing should be, if this is even correct?
I'm trying to delete all recordings from a particular user, i technically have 6 users to delete recordings from, but want to get one done at a time i guess.
Use the conversation query from your request in an analytics conversation detail query, adding the same interval and a segment filter for recording exists. That will identify the recorded conversations that the recording job will target. You can then fetch the recordings for them to establish that they exist and you can access them. Then run the recording job. Once it's done, try to retrieve those recordings again to validate that the operation worked as expected.
Your access token may be expired. If you add the account in that region again, it should work. If you continue to get an error, please share the exact response code and body you're getting.
Check to make sure your query and interval are correct on the job. If the data returned by the API doesn't seem correct, please open a case with Genesys Cloud Care to investigate. We do not have access to your org's data via the forum to validate/investigate API results.
Also, wait until the job is completed. I'm not certain if those counts are conversations it will act on or conversations it has acted on.
Loop to get job state ready for next stage (with a short sleep of say 5 seconds between requests) gc.exe recording jobs get $thisJobId -p $ProfileName 2>&1 | Set-Variable -Name jobResponse
You need to check the $jobResponse.state for "READY"
Thank you Simon, I shouldn't have too many to go through. I was able to make my way through the API's getting information Job's created for user and am going through deleting and verifying