One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type
Permissions (from least to most privileged)
Delegated (work or school account)
SecurityIncident.ReadWrite.All
Delegated (personal Microsoft account)
Not supported.
Application
SecurityIncident.ReadWrite.All
HTTP request
PATCH /security/incidents/{incidentId}
Request headers
Name
Description
Authorization
Bearer {token}. Required.
Content-Type
application/json. Required.
Request body
In the request body, supply only the values for properties that should be updated. Existing properties that aren't included in the request body maintains their previous values or be recalculated based on changes to other property values.
The following table specifies the properties that can be updated.
Property
Type
Description
assignedTo
String
Owner of the incident, or null if no owner is assigned. Free editable text.
classification
microsoft.graph.security.alertClassification
The specification for the incident. Possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue.
determination
microsoft.graph.security.alertDetermination
Specifies the determination of the incident. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, notMalicious, notEnoughDataToValidate, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue.
status
microsoft.graph.security.incidentStatus
The status of the incident. Possible values are: active, resolved, redirected, unknownFutureValue.
customTags
String collection
Array of custom tags associated with an incident.
Response
If successful, this method returns a 200 OK response code and an updated incident object in the response body.
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new Microsoft.Graph.Models.Security.Incident
{
Classification = Microsoft.Graph.Models.Security.AlertClassification.TruePositive,
Determination = Microsoft.Graph.Models.Security.AlertDetermination.MultiStagedAttack,
CustomTags = new List<string>
{
"Demo",
},
};
var result = await graphClient.Security.Incidents["{incident-id}"].PatchAsync(requestBody);
<?php
// THIS SNIPPET IS A PREVIEW VERSION OF THE SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new Incident();
$requestBody->setClassification(new AlertClassification('truePositive'));
$requestBody->setDetermination(new AlertDetermination('multiStagedAttack'));
$requestBody->setCustomTags(['Demo', ]);
$result = $graphServiceClient->security()->incidents()->byIncidentId('incident-id')->patch($requestBody)->wait();
# THE PYTHON SDK IS IN PREVIEW. FOR NON-PRODUCTION USE ONLY
graph_client = GraphServiceClient(request_adapter)
request_body = Incident(
classification = AlertClassification.TruePositive,
determination = AlertDetermination.MultiStagedAttack,
custom_tags = [
"Demo",
]
)
result = await graph_client.security.incidents.by_incident_id('incident-id').patch(body = request_body)