Title: Missing endpoint eDiscoveryHoldPolicy · Issue #2610 · microsoftgraph/msgraph-sdk-java · GitHub
Open Graph Title: Missing endpoint eDiscoveryHoldPolicy · Issue #2610 · microsoftgraph/msgraph-sdk-java
X Title: Missing endpoint eDiscoveryHoldPolicy · Issue #2610 · microsoftgraph/msgraph-sdk-java
Description: Describe the bug I am trying to create a Hold Policy in Purview eDiscovery, but the required methods are not present in the SDK. The documentation for v1.0 says that there is an /legalHolds endpoint under the ediscoveryCases resource and...
Open Graph Description: Describe the bug I am trying to create a Hold Policy in Purview eDiscovery, but the required methods are not present in the SDK. The documentation for v1.0 says that there is an /legalHolds endpoin...
X Description: Describe the bug I am trying to create a Hold Policy in Purview eDiscovery, but the required methods are not present in the SDK. The documentation for v1.0 says that there is an /legalHolds endpoin...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/2610
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing endpoint eDiscoveryHoldPolicy","articleBody":"### Describe the bug\n\nI am trying to create a Hold Policy in Purview eDiscovery, but the required methods are not present in the SDK. The [documentation for v1.0](https://learn.microsoft.com/en-us/graph/api/security-ediscoverycase-post-legalholds?view=graph-rest-1.0) says that there is an /legalHolds endpoint under the ediscoveryCases resource and this endpoint can be used with direct HTTP calls, but the SDK does not contain the necessary classes to use it via the Java SDK. The beta SDK, however, does contain these classes.\n\n### Expected behavior\n\nA LegalHolds class/method in the Java SDK to be able to use the `/security/cases/ediscoveryCases/{ediscoveryCaseId}/legalHolds` endpoint as described in the [documentation for v1.0](https://learn.microsoft.com/en-us/graph/api/security-ediscoverycase-post-legalholds?view=graph-rest-1.0)\n\n### How to reproduce\n\nThere is no legalholds subpackage in the [current ediscovery package](https://github.com/microsoftgraph/msgraph-sdk-java/tree/main/src/main/java/com/microsoft/graph/generated/security/cases/ediscoverycases/item).\n\nIn the [beta tree it exists](https://github.com/microsoftgraph/msgraph-beta-sdk-java/tree/main/src/main/java/com/microsoft/graph/beta/generated/security/cases/ediscoverycases/item/legalholds), even though it is also a v1.0 endpoint \n\n\n```java\nclient.security().cases().ediscoveryCases()\n .byEdiscoveryCaseId(purviewCaseId)\n .legalHolds() // \u003c\u003c--- Error here, method not found\n .byEdiscoveryHoldPolicyId(holdPolicyId)\n .userSources().get();\n```\n\n\n\n### SDK Version\n\n6.65.0\n\n### Latest version known to work for scenario above?\n\n_No response_\n\n### Known Workarounds\n\n_No response_\n\n### Debug output\n\n\n\n\n### Configuration\n\n_No response_\n\n### Other information\n\n_No response_","author":{"url":"https://github.com/afsluit","@type":"Person","name":"afsluit"},"datePublished":"2026-06-05T17:34:23Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/2610"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f025cb56-912f-2c1d-c305-05e6bc5fd813 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A13A:1C0B88:B3666:1002DC:6AF6BA82 |
| html-safe-nonce | cf7e4ea1d99c187c5f224c2f834fde6a877a40ec557d9b98cd6909339869cf9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTNBOjFDMEI4ODpCMzY2NjoxMDAyREM6NkFGNkJBODIiLCJ2aXNpdG9yX2lkIjoiNzgyOTA1MTI2MTUxNTY0MzUyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ef4c32d66579e37ff1f688e9ec4dd23cc85fe3eb701ae258d4c46f6ad4cfeec2 |
| hovercard-subject-tag | issue:4598851045 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java/2610/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6cfb7cbeb328f60797fd71773d11714f71fe7d45acc72eb3f14cbaf9cca740fb/microsoftgraph/msgraph-sdk-java/issues/2610 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6cfb7cbeb328f60797fd71773d11714f71fe7d45acc72eb3f14cbaf9cca740fb/microsoftgraph/msgraph-sdk-java/issues/2610 |
| og:image:alt | Describe the bug I am trying to create a Hold Policy in Purview eDiscovery, but the required methods are not present in the SDK. The documentation for v1.0 says that there is an /legalHolds endpoin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | afsluit |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8dfae1499400ee498ab0f86538d1c034e6c1b4f51c63ecade775c3b0894e3379 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-java git https://github.com/microsoftgraph/msgraph-sdk-java.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 103300409 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 103300409 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ee168845eb2be91203b179104ac9977fe4ea69a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width