// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models.Security;
var requestBody = new EdiscoveryCase
{
DisplayName = "CONTOSO LITIGATION-005",
Description = "Project Bazooka",
ExternalId = "324516",
};
// 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.PostAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v1.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
graphmodelssecurity "github.com/microsoftgraph/msgraph-sdk-go/models/security"
//other-imports
)
requestBody := graphmodelssecurity.NewEdiscoveryCase()
displayName := "CONTOSO LITIGATION-005"
requestBody.SetDisplayName(&displayName)
description := "Project Bazooka"
requestBody.SetDescription(&description)
externalId := "324516"
requestBody.SetExternalId(&externalId)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
ediscoveryCases, err := graphClient.Security().Cases().EdiscoveryCases().Post(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.models.security.EdiscoveryCase ediscoveryCase = new com.microsoft.graph.models.security.EdiscoveryCase();
ediscoveryCase.setDisplayName("CONTOSO LITIGATION-005");
ediscoveryCase.setDescription("Project Bazooka");
ediscoveryCase.setExternalId("324516");
com.microsoft.graph.models.security.EdiscoveryCase result = graphClient.security().cases().ediscoveryCases().post(ediscoveryCase);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.security.ediscovery_case import EdiscoveryCase
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = EdiscoveryCase(
display_name = "CONTOSO LITIGATION-005",
description = "Project Bazooka",
external_id = "324516",
)
result = await graph_client.security.cases.ediscovery_cases.post(request_body)