Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Create a case object in case management.
Important
You can't use this API to create incidentCase objects. Incident cases are created by the service; API requests can't create new incident cases.
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
POST /security/caseManagement/cases
Request headers
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
Request body
In the request body, supply a JSON representation of the case object. Include @odata.type to identify a supported derived type. The microsoft.graph.security.caseManagement.incidentCase derived type isn't supported for create requests.
When creating a genericCase object, you can specify all its properties 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.
Before constructing customFields, call List customFields at /security/caseManagement/caseTypeConfigurations/genericCase/customFields. 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.
| Property | Type | Description |
|---|---|---|
| assignedTo | String | The user assigned to the generic case. Optional. |
| closingNotes | String | Notes recorded when the generic case is closed. Optional. |
| customFields | microsoft.graph.security.caseManagement.customFieldValues | Tenant-defined custom field values keyed by the exact displayName of each custom field definition. Optional. |
| description | String | The description of the generic case. Optional. |
| displayName | String | The display name of the resource. Required. |
| dueDateTime | DateTimeOffset | The target completion date and time for the generic case. Optional. |
| priority | String | The priority assigned to the generic case. Possible values are: veryLow, low, medium, high, and critical. Optional. |
| status | String | The tenant-defined lifecycle status of the generic case. Use a displayName value returned in the status tree by List statuses from /security/caseManagement/caseTypeConfigurations/genericCase/statuses. Required. |
Response
If successful, this method returns a 201 Created response code and a microsoft.graph.security.caseManagement.case object in the response body.
Examples
Request
The following example shows a request.
POST https://graph.microsoft.com/beta/security/caseManagement/cases
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.security.caseManagement.genericCase",
"displayName": "Security Breach Investigation",
"status": "active",
"description": "Investigating potential credential compromise.",
"assignedTo": "john.doe@contoso.com",
"priority": "high",
"customFields": {
"Customer impact": {
"@odata.type": "#microsoft.graph.security.caseManagement.customFieldStringValue",
"value": "Executive mailbox affected"
},
"Affected users": {
"@odata.type": "#microsoft.graph.security.caseManagement.customFieldNumberValue",
"value": 12
},
"Review date": {
"@odata.type": "#microsoft.graph.security.caseManagement.customFieldDateTimeValue",
"valueDateTime": "2026-06-15T09:00:00Z"
},
"Affected services": {
"@odata.type": "#microsoft.graph.security.caseManagement.customFieldOptionsValue",
"values": [
"Exchange Online",
"Microsoft Teams"
]
}
}
}
Response
The following example shows the response.
HTTP/1.1 201 Created
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.security.caseManagement.genericCase",
"id": "987757fb-6ef4-1061-17e7-9de0d088e1dd",
"createdDateTime": "2026-06-01T10:00:00Z",
"createdBy": "john.doe@contoso.com",
"lastModifiedDateTime": "2026-06-01T10:00:00Z",
"lastModifiedBy": "john.doe@contoso.com",
"displayName": "Security Breach Investigation",
"status": "active",
"description": "Investigating potential credential compromise.",
"assignedTo": "john.doe@contoso.com",
"priority": "high",
"customFields": {
"Customer impact": {
"@odata.type": "#microsoft.graph.security.caseManagement.customFieldStringValue",
"value": "Executive mailbox affected"
},
"Affected users": {
"@odata.type": "#microsoft.graph.security.caseManagement.customFieldNumberValue",
"value": 12
},
"Review date": {
"@odata.type": "#microsoft.graph.security.caseManagement.customFieldDateTimeValue",
"valueDateTime": "2026-06-15T09:00:00Z"
},
"Affected services": {
"@odata.type": "#microsoft.graph.security.caseManagement.customFieldOptionsValue",
"values": [
"Exchange Online",
"Microsoft Teams"
]
}
}
}