todoTask resource type

Namespace: microsoft.graph

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.

A todoTask represents a task, such as a piece of work or personal item, that can be tracked and completed.

A todoTask is always contained in a todoTaskList. It includes a relationship to a collection of linkedResource objects, tracking one or more sources of the task.

This resource supports the following:

Methods

Method Return type Description
List tasks todoTask collection Get all the todoTask resources in the specified list.
Create task todoTask Create a todoTask in the specified task list
Get task todoTask Read the properties and relationships of a todoTask object.
Update task todoTask Update the properties of a todoTask object.
Delete task None Deletes a todoTask object.
List checklistItems checklistItem collection Get the checklistItem resources from the checklistItems navigation property.
Create checklistItem checklistItem Create a new checklistItem object.
List linkedResources linkedResource collection Get the linkedResources from the linkedResources navigation property.
Create linkedResources linkedResource Create a new linkedResources object.

Properties

Property Type Description
body itemBody The task body that typically contains information about the task.
bodyLastModifiedDateTime DateTimeOffset The date and time when the task body was last modified. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
categories String collection The categories associated with the task. Each category corresponds to the displayName property of an outlookCategory that the user has defined.
completedDateTime dateTimeTimeZone The date and time in the specified time zone that the task was finished.
createdDateTime DateTimeOffset The date and time when the task was created. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
dueDateTime dateTimeTimeZone The date and time in the specified time zone that the task is to be finished.
hasAttachments Boolean Indicates whether the task has attachments.
id String Unique identifier for the task. By default, this value changes when the item is moved from one list to another.
importance importance The importance of the task. Possible values are: low, normal, high.
isReminderOn Boolean Set to true if an alert is set to remind the user of the task.
lastModifiedDateTime DateTimeOffset The date and time when the task was last modified. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
recurrence patternedRecurrence The recurrence pattern for the task.
reminderDateTime dateTimeTimeZone The date and time in the specified time zone for a reminder alert of the task to occur.
startDateTime dateTimeTimeZone The date and time in the specified time zone at which the task is scheduled to start.
status taskStatus Indicates the state or progress of the task. Possible values are: notStarted, inProgress, completed, waitingOnOthers, deferred.
title String A brief description of the task.

Relationships

Relationship Type Description
attachments taskFileAttachment collection A collection of file attachments for the task.
checklistItems checklistItem collection A collection of smaller subtasks linked to the more complex parent task.
extensions extension collection The collection of open extensions defined for the task. Nullable.
linkedResources linkedResource collection A collection of resources linked to the task.

JSON representation

The following JSON representation shows the resource type.

{
  "@odata.type": "#microsoft.graph.todoTask",
  "id": "String (identifier)",
  "body": {
    "@odata.type": "microsoft.graph.itemBody"
  },
  "categories": ["string"],
  "completedDateTime": {
    "@odata.type": "microsoft.graph.dateTimeTimeZone"
  },
  "dueDateTime": {
    "@odata.type": "microsoft.graph.dateTimeTimeZone"
  },
  "importance": "String",
  "isReminderOn": "Boolean",
  "recurrence": {
    "@odata.type": "microsoft.graph.patternedRecurrence"
  },
  "reminderDateTime": {
    "@odata.type": "microsoft.graph.dateTimeTimeZone"
  },
  "startDateTime": {
    "@odata.type": "microsoft.graph.dateTimeTimeZone"
  },
  "status": "String",
  "title": "String",
  "createdDateTime": "String (timestamp)",
  "lastModifiedDateTime": "String (timestamp)",
  "bodyLastModifiedDateTime": "String (timestamp)"
}