Hi @Stanley Nichols- When you make the POST request, the body should look like this:
{
Note that purgeAreas
should be an array.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am attempting to search and delete a message in Microsoft Teams, I have found a procedure document from Microsoft that shows how to do it via the Purview Portal and Graph Explorer here, a cumbersome process to say the least, I get to the step where it has you run the POST request using this, while replacing my values with the correct id's.
https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{ediscoveryCaseID}/searches/{ediscoverySearchID}/purgeData
When I Run Query I am presented with an error that states: "PurgeType and PurgeArea parameters must be specified.", now here is where I am confused, when referencing the sourceCollection: purgeData documentation
it specifically states::
Request body
Don't supply a request body for this method.Request body
Don't supply a request body for this method.
Only when I provide the following arguments in the Request Body do I get a Acccepted Query:
{
"purgeType": "recoverable",
"purgeAreas": "teamsMessages"
}
The issue is the message is still there, it has been about 48 hours and I am not seeing any retention policies enabled, apart from the ones I have disabled. I am seeing a few threads on here but with no definite answer.
Has anyone done this before and is able to point me in the right direction?
Hi @Stanley Nichols- When you make the POST request, the body should look like this:
{
Note that purgeAreas
should be an array.
So when I provide the following:
{
"purgeType": "recoverable",
"purgeAreas": ["teamsMessages"]
}
Parameter PurgeAreas does not accept collection values.
Thanks for posting this question, you should be able to post this action by adding the the Request body:
{
"purgeType": "recoverable",
"purgeAreas": "teamsMessages"
}