The left-side menu in the documentation does NOT list all the endpoints available. You have to dig a bit deeper.
To see all of the endpoints for a particular section, go to the first page listed for that category.
Compliance (preview) -> eDiscovery -> Legal hold -> Legal hold
Here you can see that there is more than List, Create, Get, Update, Delete
https://learn.microsoft.com/en-us/graph/api/resources/ediscovery-legalhold?view=graph-rest-beta
https://learn.microsoft.com/en-us/graph/api/ediscovery-legalhold-post-usersources?view=graph-rest-beta&tabs=http
How to pass Email id in Create legalHold method
Casepoint Developer
66
Reputation points
Hi,
I am trying to use this method to create a legal hold.
API: POST /compliance/ediscovery/cases/{caseId}/legalHolds
document link: https://learn.microsoft.com/en-us/graph/api/ediscovery-case-post-legalholds?view=graph-rest-beta&tabs=http
As per the document,
Here is the request JSON
{
"@odata.type": "#microsoft.graph.ediscovery.legalHold",
"description": "String",
"createdBy": {
"@odata.type": "microsoft.graph.identitySet"
},
"isEnabled": "Boolean",
"status": "String",
"contentQuery": "String",
"errors": [
"String"
],
"displayName": "String"
}
Here there is no example/option to pass "email-id/Usersource" in which we can create a hold.
Can you please tell me, how can I create a JSON for passing "email-ids/Usersources"?
Thank You!
1 answer
Sort by: Most helpful
-
Jobmann, Eric 1 Reputation point
2021-08-25T23:55:08.103+00:00