question

CasepointDeveloper-2078 avatar image
0 Votes"
CasepointDeveloper-2078 asked bgervin edited

How to pass Email id in Create legalHold method

Hi,

I am trying to use this method to create a legal hold.
API: POST /compliance/ediscovery/cases/{caseId}/legalHolds
document link: https://docs.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!

microsoft-graph-compliance
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JobmannEric-3447 avatar image
0 Votes"
JobmannEric-3447 answered

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://docs.microsoft.com/en-us/graph/api/resources/ediscovery-legalhold?view=graph-rest-beta
https://docs.microsoft.com/en-us/graph/api/ediscovery-legalhold-post-usersources?view=graph-rest-beta&tabs=http

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.