PATCH https://graph.microsoft.com/beta/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/settings
Content-Type: application/json
{
"@odata.type": "https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/settings/$entity",
"redundancyDetection": {
"isEnabled": true,
"similarityThreshold": 65,
"minWords": 10,
"maxWords": 500000
},
"topicModeling": {
"isEnabled": false,
"ignoreNumbers": true,
"topicCount": 100,
"dynamicallyAdjustTopicCount": true
},
"ocr": {
"isEnabled": false,
"maxImageSize": 24576,
"timeout": "PT1M"
},
"caseType": "standard",
"reviewSetSettings": "disableGrouping"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models.Security;
var requestBody = new EdiscoveryCaseSettings
{
OdataType = "https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/settings/$entity",
RedundancyDetection = new RedundancyDetectionSettings
{
IsEnabled = true,
SimilarityThreshold = 65,
MinWords = 10,
MaxWords = 500000,
},
TopicModeling = new TopicModelingSettings
{
IsEnabled = false,
IgnoreNumbers = true,
TopicCount = 100,
DynamicallyAdjustTopicCount = true,
},
Ocr = new OcrSettings
{
IsEnabled = false,
MaxImageSize = 24576,
Timeout = TimeSpan.Parse("PT1M"),
},
CaseType = CaseType.Standard,
ReviewSetSettings = ReviewSetSettings.DisableGrouping,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Security.Cases.EdiscoveryCases["{ediscoveryCase-id}"].Settings.PatchAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphmodelssecurity "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security"
//other-imports
)
requestBody := graphmodelssecurity.NewEdiscoveryCaseSettings()
redundancyDetection := graphmodelssecurity.NewRedundancyDetectionSettings()
isEnabled := true
redundancyDetection.SetIsEnabled(&isEnabled)
similarityThreshold := int32(65)
redundancyDetection.SetSimilarityThreshold(&similarityThreshold)
minWords := int32(10)
redundancyDetection.SetMinWords(&minWords)
maxWords := int32(500000)
redundancyDetection.SetMaxWords(&maxWords)
requestBody.SetRedundancyDetection(redundancyDetection)
topicModeling := graphmodelssecurity.NewTopicModelingSettings()
isEnabled := false
topicModeling.SetIsEnabled(&isEnabled)
ignoreNumbers := true
topicModeling.SetIgnoreNumbers(&ignoreNumbers)
topicCount := int32(100)
topicModeling.SetTopicCount(&topicCount)
dynamicallyAdjustTopicCount := true
topicModeling.SetDynamicallyAdjustTopicCount(&dynamicallyAdjustTopicCount)
requestBody.SetTopicModeling(topicModeling)
ocr := graphmodelssecurity.NewOcrSettings()
isEnabled := false
ocr.SetIsEnabled(&isEnabled)
maxImageSize := int32(24576)
ocr.SetMaxImageSize(&maxImageSize)
timeout , err := abstractions.ParseISODuration("PT1M")
ocr.SetTimeout(&timeout)
requestBody.SetOcr(ocr)
caseType := graphmodels.STANDARD_CASETYPE
requestBody.SetCaseType(&caseType)
reviewSetSettings := graphmodels.DISABLEGROUPING_REVIEWSETSETTINGS
requestBody.SetReviewSetSettings(&reviewSetSettings)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
settings, err := graphClient.Security().Cases().EdiscoveryCases().ByEdiscoveryCaseId("ediscoveryCase-id").Settings().Patch(context.Background(), requestBody, nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.beta.models.security.EdiscoveryCaseSettings ediscoveryCaseSettings = new com.microsoft.graph.beta.models.security.EdiscoveryCaseSettings();
ediscoveryCaseSettings.setOdataType("https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/settings/$entity");
com.microsoft.graph.beta.models.security.RedundancyDetectionSettings redundancyDetection = new com.microsoft.graph.beta.models.security.RedundancyDetectionSettings();
redundancyDetection.setIsEnabled(true);
redundancyDetection.setSimilarityThreshold(65);
redundancyDetection.setMinWords(10);
redundancyDetection.setMaxWords(500000);
ediscoveryCaseSettings.setRedundancyDetection(redundancyDetection);
com.microsoft.graph.beta.models.security.TopicModelingSettings topicModeling = new com.microsoft.graph.beta.models.security.TopicModelingSettings();
topicModeling.setIsEnabled(false);
topicModeling.setIgnoreNumbers(true);
topicModeling.setTopicCount(100);
topicModeling.setDynamicallyAdjustTopicCount(true);
ediscoveryCaseSettings.setTopicModeling(topicModeling);
com.microsoft.graph.beta.models.security.OcrSettings ocr = new com.microsoft.graph.beta.models.security.OcrSettings();
ocr.setIsEnabled(false);
ocr.setMaxImageSize(24576);
PeriodAndDuration timeout = PeriodAndDuration.ofDuration(Duration.parse("PT1M"));
ocr.setTimeout(timeout);
ediscoveryCaseSettings.setOcr(ocr);
ediscoveryCaseSettings.setCaseType(com.microsoft.graph.beta.models.security.CaseType.Standard);
ediscoveryCaseSettings.setReviewSetSettings(EnumSet.of(com.microsoft.graph.beta.models.security.ReviewSetSettings.DisableGrouping));
com.microsoft.graph.models.security.EdiscoveryCaseSettings result = graphClient.security().cases().ediscoveryCases().byEdiscoveryCaseId("{ediscoveryCase-id}").settings().patch(ediscoveryCaseSettings);
const options = {
authProvider,
};
const client = Client.init(options);
const ediscoveryCaseSettings = {
'@odata.type': 'https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases(\'b0073e4e-4184-41c6-9eb7-8c8cc3e2288b\')/settings/$entity',
redundancyDetection: {
isEnabled: true,
similarityThreshold: 65,
minWords: 10,
maxWords: 500000
},
topicModeling: {
isEnabled: false,
ignoreNumbers: true,
topicCount: 100,
dynamicallyAdjustTopicCount: true
},
ocr: {
isEnabled: false,
maxImageSize: 24576,
timeout: 'PT1M'
},
caseType: 'standard',
reviewSetSettings: 'disableGrouping'
};
await client.api('/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/settings')
.version('beta')
.update(ediscoveryCaseSettings);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\Security\EdiscoveryCaseSettings;
use Microsoft\Graph\Beta\Generated\Models\Security\RedundancyDetectionSettings;
use Microsoft\Graph\Beta\Generated\Models\Security\TopicModelingSettings;
use Microsoft\Graph\Beta\Generated\Models\Security\OcrSettings;
use Microsoft\Graph\Beta\Generated\Models\Security\CaseType;
use Microsoft\Graph\Beta\Generated\Models\Security\ReviewSetSettings;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new EdiscoveryCaseSettings();
$requestBody->setOdataType('https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases(\'b0073e4e-4184-41c6-9eb7-8c8cc3e2288b\')/settings/$entity');
$redundancyDetection = new RedundancyDetectionSettings();
$redundancyDetection->setIsEnabled(true);
$redundancyDetection->setSimilarityThreshold(65);
$redundancyDetection->setMinWords(10);
$redundancyDetection->setMaxWords(500000);
$requestBody->setRedundancyDetection($redundancyDetection);
$topicModeling = new TopicModelingSettings();
$topicModeling->setIsEnabled(false);
$topicModeling->setIgnoreNumbers(true);
$topicModeling->setTopicCount(100);
$topicModeling->setDynamicallyAdjustTopicCount(true);
$requestBody->setTopicModeling($topicModeling);
$ocr = new OcrSettings();
$ocr->setIsEnabled(false);
$ocr->setMaxImageSize(24576);
$ocr->setTimeout(new \DateInterval('PT1M'));
$requestBody->setOcr($ocr);
$requestBody->setCaseType(new CaseType('standard'));
$requestBody->setReviewSetSettings(new ReviewSetSettings('disableGrouping'));
$result = $graphServiceClient->security()->cases()->ediscoveryCases()->byEdiscoveryCaseId('ediscoveryCase-id')->settings()->patch($requestBody)->wait();
Import-Module Microsoft.Graph.Beta.Security
$params = @{
"@odata.type" = "https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/settings/$entity"
redundancyDetection = @{
isEnabled = $true
similarityThreshold = 65
minWords = 10
maxWords = 500000
}
topicModeling = @{
isEnabled = $false
ignoreNumbers = $true
topicCount = 100
dynamicallyAdjustTopicCount = $true
}
ocr = @{
isEnabled = $false
maxImageSize = 24576
timeout = "PT1M"
}
caseType = "standard"
reviewSetSettings = "disableGrouping"
}
Update-MgBetaSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.security.ediscovery_case_settings import EdiscoveryCaseSettings
from msgraph_beta.generated.models.security.redundancy_detection_settings import RedundancyDetectionSettings
from msgraph_beta.generated.models.security.topic_modeling_settings import TopicModelingSettings
from msgraph_beta.generated.models.security.ocr_settings import OcrSettings
from msgraph_beta.generated.models.case_type import CaseType
from msgraph_beta.generated.models.review_set_settings import ReviewSetSettings
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = EdiscoveryCaseSettings(
odata_type = "https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/settings/$entity",
redundancy_detection = RedundancyDetectionSettings(
is_enabled = True,
similarity_threshold = 65,
min_words = 10,
max_words = 500000,
),
topic_modeling = TopicModelingSettings(
is_enabled = False,
ignore_numbers = True,
topic_count = 100,
dynamically_adjust_topic_count = True,
),
ocr = OcrSettings(
is_enabled = False,
max_image_size = 24576,
timeout = "PT1M",
),
case_type = CaseType.Standard,
review_set_settings = ReviewSetSettings.DisableGrouping,
)
result = await graph_client.security.cases.ediscovery_cases.by_ediscovery_case_id('ediscoveryCase-id').settings.patch(request_body)