| title | incident: mergeIncidents |
|---|---|
| description | Merge multiple incidents into a single incident. |
| author | HarelDamti |
| ms.localizationpriority | medium |
| ms.subservice | security |
| doc_type | apiPageType |
| ms.date | 02/24/2026 |
Namespace: microsoft.graph.security
[!INCLUDE beta-disclaimer]
Merge multiple incident resources into a single incident.
[!INCLUDE national-cloud-support]
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.
[!INCLUDE permissions-table]
[!INCLUDE rbac-security-alerts-incidents-apis-write]
POST /security/incidents/mergeIncidents| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
In the request body, provide a JSON object with the following parameters.
| Parameter | Type | Description |
|---|---|---|
| incidentIds | String collection | Required. The IDs of the incidents to merge. |
| incidentComment | String | Optional. A comment to add to the merged incident. |
| mergeReasons | microsoft.graph.security.correlationReason | Optional. The correlation reasons for merging the incidents. This object is a flags enum that allows multiple values to be specified. |
If successful, this action returns a 200 OK response code and a microsoft.graph.security.mergeResponse object in the response body.
The following example merges two incidents.
POST https://graph.microsoft.com/beta/security/incidents/mergeIncidents
Content-Type: application/json
{
"incidentIds": [
"2972395",
"2972396"
],
"incidentComment": "Merging related incidents from the same campaign",
"mergeReasons": "sameCampaign, sameActor"
}[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
HTTP/1.1 200 OK
Content-type: application/json
{
"targetIncidentId": "2972395"
}