Namespace: microsoft.graph.security.caseManagement
Important
APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Update the properties of a microsoft.graph.security.caseManagement.case object.
This API is available in the following national cloud deployments.
| Global service |
US Government L4 |
US Government L5 (DOD) |
China operated by 21Vianet |
| ✅ |
❌ |
❌ |
❌ |
Permissions
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
| Permission type |
Least privileged permissions |
Higher privileged permissions |
| Delegated (work or school account) |
CaseManagement.ReadWrite.All |
Not available. |
| Delegated (personal Microsoft account) |
Not supported. |
Not supported. |
| Application |
CaseManagement.ReadWrite.All |
Not available. |
Important
For delegated access using work or school accounts, the signed-in user must be assigned a supported Microsoft Entra role or a custom role that grants the permissions required for this operation. This API supports the following built-in roles:
- Global Reader
- Security Reader
- Security Operator
- Security Administrator
HTTP request
PATCH /security/caseManagement/cases/{caseId}
Request body
In the request body, supply only the values for properties to update. Existing properties that aren't included in the request body maintain their previous values or are recalculated based on changes to other property values.
The following table specifies the properties that can be updated.
Supply a JSON representation of the resource. For polymorphic resources, include @odata.type to identify the concrete case type. The properties that can be updated depend on the case type.
To update customFields, call List customFields at /security/caseManagement/caseTypeConfigurations/{caseTypeConfigurationId}/customFields, where {caseTypeConfigurationId} matches the case type. Use each definition's displayName, not its id, as the dynamic property name. The name must match exactly one definition. Each dynamic value must be an object that includes the mapped concrete @odata.type and the corresponding value, values, or valueDateTime property from the custom field value mapping; bare values aren't supported.
For genericCase objects, all properties can be updated except id, createdBy, createdDateTime, lastModifiedBy, and lastModifiedDateTime, which are inherited from caseManagementEntity. The API ignores these properties if you include them in the request body.
The following properties can be updated for all case types.
| Property |
Type |
Description |
| displayName |
String |
The display name of the case. |
| status |
String |
The tenant-defined lifecycle status of the case. Use a displayName value returned in the status tree by List statuses from /security/caseManagement/caseTypeConfigurations/genericCase/statuses or /security/caseManagement/caseTypeConfigurations/incidentCase/statuses, depending on the case type. |
For genericCase objects, you can also update the following properties.
| Property |
Type |
Description |
| assignedTo |
String |
The user assigned to the generic case. |
| closingNotes |
String |
Notes recorded when the generic case is closed. |
| customFields |
microsoft.graph.security.caseManagement.customFieldValues |
Tenant-defined custom field values keyed by the exact displayName of each custom field definition. |
| description |
String |
The description of the generic case. |
| dueDateTime |
DateTimeOffset |
The target completion date and time for the generic case. |
| priority |
String |
The priority assigned to the generic case. Possible values are: veryLow, low, medium, high, and critical. |
For incidentCase objects, the following properties are synchronized with the underlying incident. A PATCH request that includes any of these properties returns 202 Accepted with no response body. The changes might take a few minutes to synchronize and appear on the case.
The following incident case properties aren't synchronized with the underlying incident. A PATCH request that updates only these properties returns 200 OK with the updated incidentCase object in the response body.
If a PATCH request includes properties from both groups, the method returns 202 Accepted with no response body.
Response
If successful, this method returns one of the following response codes:
Examples
Example 1: Update a generic case
Request
The following example shows a request.
PATCH https://graph.microsoft.com/beta/security/caseManagement/cases/{caseId}
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.security.caseManagement.genericCase",
"displayName": "Case MS-001",
"status": "Open",
"description": "Investigating potential credential compromise.",
"assignedTo": "john.doe@contoso.com",
"priority": "high",
"dueDateTime": "2026-06-29T17:54:43Z",
"closingNotes": "Follow up with the account owner.",
"customFields": {
"Customer impact": {
"@odata.type": "#microsoft.graph.security.caseManagement.customFieldStringValue",
"value": "Multiple executive mailboxes affected"
}
}
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models.Security.CaseManagement;
var requestBody = new GenericCase
{
OdataType = "#microsoft.graph.security.caseManagement.genericCase",
DisplayName = "Case MS-001",
Status = "Open",
Description = "Investigating potential credential compromise.",
AssignedTo = "john.doe@contoso.com",
Priority = "high",
DueDateTime = DateTimeOffset.Parse("2026-06-29T17:54:43Z"),
ClosingNotes = "Follow up with the account owner.",
CustomFields = new CustomFieldValues
{
AdditionalData = new Dictionary<string, object>
{
{
"Customer impact" , new CustomFieldStringValue
{
OdataType = "#microsoft.graph.security.caseManagement.customFieldStringValue",
Value = "Multiple executive mailboxes affected",
}
},
},
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Security.CaseManagement.Cases["{case-id}"].PatchAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
"time"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphmodelssecuritycasemanagement "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security/casemanagement"
//other-imports
)
requestBody := graphmodelssecuritycasemanagement.NewCase()
displayName := "Case MS-001"
requestBody.SetDisplayName(&displayName)
status := "Open"
requestBody.SetStatus(&status)
description := "Investigating potential credential compromise."
requestBody.SetDescription(&description)
assignedTo := "john.doe@contoso.com"
requestBody.SetAssignedTo(&assignedTo)
priority := "high"
requestBody.SetPriority(&priority)
dueDateTime , err := time.Parse(time.RFC3339, "2026-06-29T17:54:43Z")
requestBody.SetDueDateTime(&dueDateTime)
closingNotes := "Follow up with the account owner."
requestBody.SetClosingNotes(&closingNotes)
customFields := graphmodelssecuritycasemanagement.NewCustomFieldValues()
additionalData := map[string]interface{}{
customer impact := graphmodelssecuritycasemanagement.NewCustomFieldStringValue()
value := "Multiple executive mailboxes affected"
customer impact.SetValue(&value)
customFields.SetCustomer impact(customer impact)
}
customFields.SetAdditionalData(additionalData)
requestBody.SetCustomFields(customFields)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
cases, err := graphClient.Security().CaseManagement().Cases().ByCaseId("case-id").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.casemanagement.GenericCase caseEscaped = new com.microsoft.graph.beta.models.security.casemanagement.GenericCase();
caseEscaped.setOdataType("#microsoft.graph.security.caseManagement.genericCase");
caseEscaped.setDisplayName("Case MS-001");
caseEscaped.setStatus("Open");
caseEscaped.setDescription("Investigating potential credential compromise.");
caseEscaped.setAssignedTo("john.doe@contoso.com");
caseEscaped.setPriority("high");
OffsetDateTime dueDateTime = OffsetDateTime.parse("2026-06-29T17:54:43Z");
caseEscaped.setDueDateTime(dueDateTime);
caseEscaped.setClosingNotes("Follow up with the account owner.");
com.microsoft.graph.beta.models.security.casemanagement.CustomFieldValues customFields = new com.microsoft.graph.beta.models.security.casemanagement.CustomFieldValues();
HashMap<String, Object> additionalData = new HashMap<String, Object>();
com.microsoft.graph.beta.models.security.casemanagement.CustomFieldStringValue customerImpact = new com.microsoft.graph.beta.models.security.casemanagement.CustomFieldStringValue();
customerImpact.setOdataType("#microsoft.graph.security.caseManagement.customFieldStringValue");
customerImpact.setValue("Multiple executive mailboxes affected");
additionalData.put("Customer impact", customerImpact);
customFields.setAdditionalData(additionalData);
caseEscaped.setCustomFields(customFields);
com.microsoft.graph.models.security.casemanagement.Case result = graphClient.security().caseManagement().cases().byCaseId("{case-id}").patch(caseEscaped);
const options = {
authProvider,
};
const client = Client.init(options);
const _case = {
'@odata.type': '#microsoft.graph.security.caseManagement.genericCase',
displayName: 'Case MS-001',
status: 'Open',
description: 'Investigating potential credential compromise.',
assignedTo: 'john.doe@contoso.com',
priority: 'high',
dueDateTime: '2026-06-29T17:54:43Z',
closingNotes: 'Follow up with the account owner.',
customFields: {
'Customer impact': {
'@odata.type': '#microsoft.graph.security.caseManagement.customFieldStringValue',
value: 'Multiple executive mailboxes affected'
}
}
};
await client.api('/security/caseManagement/cases/{caseId}')
.version('beta')
.update(_case);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\Security\CaseManagement\GenericCase;
use Microsoft\Graph\Beta\Generated\Models\Security\CaseManagement\CustomFieldValues;
use Microsoft\Graph\Beta\Generated\Models\Security\CaseManagement\CustomFieldStringValue;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new GenericCase();
$requestBody->setOdataType('#microsoft.graph.security.caseManagement.genericCase');
$requestBody->setDisplayName('Case MS-001');
$requestBody->setStatus('Open');
$requestBody->setDescription('Investigating potential credential compromise.');
$requestBody->setAssignedTo('john.doe@contoso.com');
$requestBody->setPriority('high');
$requestBody->setDueDateTime(new \DateTime('2026-06-29T17:54:43Z'));
$requestBody->setClosingNotes('Follow up with the account owner.');
$customFields = new CustomFieldValues();
$additionalData = [
'Customer impact' => [
'@odata.type' => '#microsoft.graph.security.caseManagement.customFieldStringValue',
'value' => 'Multiple executive mailboxes affected',
],
];
$customFields->setAdditionalData($additionalData);
$requestBody->setCustomFields($customFields);
$result = $graphServiceClient->security()->caseManagement()->cases()->byCaseId('case-id')->patch($requestBody)->wait();
Import-Module Microsoft.Graph.Beta.Security
$params = @{
"@odata.type" = "#microsoft.graph.security.caseManagement.genericCase"
displayName = "Case MS-001"
status = "Open"
description = "Investigating potential credential compromise."
assignedTo = "john.doe@contoso.com"
priority = "high"
dueDateTime = "2026-06-29T17:54:43Z"
closingNotes = "Follow up with the account owner."
customFields = @{
"Customer impact" = @{
"@odata.type" = "#microsoft.graph.security.caseManagement.customFieldStringValue"
value = "Multiple executive mailboxes affected"
}
}
}
Update-MgBetaSecurityCaseManagementCase -CaseId $caseId -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.case_management.generic_case import GenericCase
from msgraph_beta.generated.models.security.case_management.custom_field_values import CustomFieldValues
from msgraph_beta.generated.models.security.case_management.custom_field_string_value import CustomFieldStringValue
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = GenericCase(
odata_type = "#microsoft.graph.security.caseManagement.genericCase",
display_name = "Case MS-001",
status = "Open",
description = "Investigating potential credential compromise.",
assigned_to = "john.doe@contoso.com",
priority = "high",
due_date_time = "2026-06-29T17:54:43Z",
closing_notes = "Follow up with the account owner.",
custom_fields = CustomFieldValues(
additional_data = {
"customer impact" : {
"@odata_type" : "#microsoft.graph.security.caseManagement.customFieldStringValue",
"value" : "Multiple executive mailboxes affected",
},
}
),
)
result = await graph_client.security.case_management.cases.by_case_id('case-id').patch(request_body)
Response
The following example shows the response.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.security.caseManagement.genericCase",
"id": "987757fb-6ef4-1061-17e7-9de0d088e1dd",
"createdDateTime": "2026-05-20T11:12:28Z",
"createdBy": "user@contoso.com",
"lastModifiedDateTime": "2026-05-20T11:18:45Z",
"lastModifiedBy": "user@contoso.com",
"displayName": "Case MS-001",
"status": "Open",
"description": "Investigating potential credential compromise.",
"assignedTo": "john.doe@contoso.com",
"priority": "high",
"dueDateTime": "2026-06-29T17:54:43Z",
"closingNotes": "Follow up with the account owner.",
"customFields": {
"Customer impact": {
"@odata.type": "#microsoft.graph.security.caseManagement.customFieldStringValue",
"value": "Multiple executive mailboxes affected"
}
}
}
Example 2: Update synchronized incident case properties
Request
The following example updates properties that are synchronized with the underlying incident.
PATCH https://graph.microsoft.com/beta/security/caseManagement/cases/{caseId}
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.security.caseManagement.incidentCase",
"displayName": "Incident Case MS-002",
"status": "InProgress",
"classification": "truePositive",
"determination": "phishing",
"severity": "high"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models.Security.CaseManagement;
var requestBody = new IncidentCase
{
OdataType = "#microsoft.graph.security.caseManagement.incidentCase",
DisplayName = "Incident Case MS-002",
Status = "InProgress",
Classification = IncidentClassification.TruePositive,
Determination = IncidentDetermination.Phishing,
Severity = IncidentSeverity.High,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Security.CaseManagement.Cases["{case-id}"].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"
graphmodelssecuritycasemanagement "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security/casemanagement"
//other-imports
)
requestBody := graphmodelssecuritycasemanagement.NewCase()
displayName := "Incident Case MS-002"
requestBody.SetDisplayName(&displayName)
status := "InProgress"
requestBody.SetStatus(&status)
classification := graphmodels.TRUEPOSITIVE_INCIDENTCLASSIFICATION
requestBody.SetClassification(&classification)
determination := graphmodels.PHISHING_INCIDENTDETERMINATION
requestBody.SetDetermination(&determination)
severity := graphmodels.HIGH_INCIDENTSEVERITY
requestBody.SetSeverity(&severity)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
cases, err := graphClient.Security().CaseManagement().Cases().ByCaseId("case-id").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.casemanagement.IncidentCase caseEscaped = new com.microsoft.graph.beta.models.security.casemanagement.IncidentCase();
caseEscaped.setOdataType("#microsoft.graph.security.caseManagement.incidentCase");
caseEscaped.setDisplayName("Incident Case MS-002");
caseEscaped.setStatus("InProgress");
caseEscaped.setClassification(com.microsoft.graph.beta.models.security.casemanagement.IncidentClassification.TruePositive);
caseEscaped.setDetermination(com.microsoft.graph.beta.models.security.casemanagement.IncidentDetermination.Phishing);
caseEscaped.setSeverity(com.microsoft.graph.beta.models.security.casemanagement.IncidentSeverity.High);
com.microsoft.graph.models.security.casemanagement.Case result = graphClient.security().caseManagement().cases().byCaseId("{case-id}").patch(caseEscaped);
const options = {
authProvider,
};
const client = Client.init(options);
const _case = {
'@odata.type': '#microsoft.graph.security.caseManagement.incidentCase',
displayName: 'Incident Case MS-002',
status: 'InProgress',
classification: 'truePositive',
determination: 'phishing',
severity: 'high'
};
await client.api('/security/caseManagement/cases/{caseId}')
.version('beta')
.update(_case);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\Security\CaseManagement\IncidentCase;
use Microsoft\Graph\Beta\Generated\Models\Security\CaseManagement\IncidentClassification;
use Microsoft\Graph\Beta\Generated\Models\Security\CaseManagement\IncidentDetermination;
use Microsoft\Graph\Beta\Generated\Models\Security\CaseManagement\IncidentSeverity;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new IncidentCase();
$requestBody->setOdataType('#microsoft.graph.security.caseManagement.incidentCase');
$requestBody->setDisplayName('Incident Case MS-002');
$requestBody->setStatus('InProgress');
$requestBody->setClassification(new IncidentClassification('truePositive'));
$requestBody->setDetermination(new IncidentDetermination('phishing'));
$requestBody->setSeverity(new IncidentSeverity('high'));
$result = $graphServiceClient->security()->caseManagement()->cases()->byCaseId('case-id')->patch($requestBody)->wait();
Import-Module Microsoft.Graph.Beta.Security
$params = @{
"@odata.type" = "#microsoft.graph.security.caseManagement.incidentCase"
displayName = "Incident Case MS-002"
status = "InProgress"
classification = "truePositive"
determination = "phishing"
severity = "high"
}
Update-MgBetaSecurityCaseManagementCase -CaseId $caseId -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.case_management.incident_case import IncidentCase
from msgraph_beta.generated.models.incident_classification import IncidentClassification
from msgraph_beta.generated.models.incident_determination import IncidentDetermination
from msgraph_beta.generated.models.incident_severity import IncidentSeverity
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = IncidentCase(
odata_type = "#microsoft.graph.security.caseManagement.incidentCase",
display_name = "Incident Case MS-002",
status = "InProgress",
classification = IncidentClassification.TruePositive,
determination = IncidentDetermination.Phishing,
severity = IncidentSeverity.High,
)
result = await graph_client.security.case_management.cases.by_case_id('case-id').patch(request_body)
Response
The following example shows the response.
HTTP/1.1 202 Accepted