Edit

Update task

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 task 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}/tasks/{taskId}

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 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 derived type.

You can update all client-managed task properties. The id, createdBy, createdDateTime, lastModifiedBy, and lastModifiedDateTime properties are server managed and can't be updated.

Property Type Description
assignedTo String The user assigned to the resource.
category microsoft.graph.security.caseManagement.caseTaskCategory The functional category of the task.
closingNotes String Notes recorded when the resource is completed or closed.
description String The description of the resource.
displayName String The display name of the resource.
dueDateTime DateTimeOffset The target completion date and time.
priority microsoft.graph.security.caseManagement.caseTaskPriority The priority assigned to the resource.
status microsoft.graph.security.caseManagement.taskStatus The lifecycle status of the resource.

Response

If successful, this method returns a 204 No Content response code.

Examples

Request

The following example shows a request.

PATCH https://graph.microsoft.com/beta/security/caseManagement/cases/{caseId}/tasks/{taskId}
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.security.caseManagement.task",
  "displayName": "Validate affected devices",
  "status": "new",
  "description": "Review affected devices and collect evidence",
  "assignedTo": "user@contoso.com",
  "closingNotes": "Investigation completed and documented",
  "dueDateTime": "2026-06-29T17:54:43Z",
  "priority": "high",
  "category": "investigate"
}

Response

The following example shows the response.

HTTP/1.1 204 No Content