Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
Caution
The to-do API set built on baseTask was deprecated on May 31, 2022, and stopped returning data on August 31, 2022. Use the todoTask API instead.
Represents a task, such as a piece of work or personal item, that can be tracked and completed. A task is always contained in a base task list.
This resource supports the following:
Inherits from baseTask.
Method | Return type | Description |
---|---|---|
List tasks | task collection | Get a list of the task objects and their properties. |
Get task | task | Read the properties and relationships of a task object. |
Update task | task | Update the properties of a task object. |
Delete task | None | Deletes a task object. |
move | baseTask | Move the message to a different list. |
List checklistItems | checklistItem collection | Get the checklistItem resources from the checklistItems navigation property. |
Create checklistItem | checklistItem | Create a new checklistItem object. |
List linkedResources | linkedResource_v2 collection | Get the linkedResource_v2 resources from the linkedResources navigation property. |
Create linkedResource | linkedResource_v2 | Create a new linkedResource_v2 object. |
Property | Type | Description |
---|---|---|
textbody | itemBody | The task body in text format that typically contains information about the task. Inherited from baseTask. |
bodyLastModifiedDateTime | 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'. Inherited from baseTask. |
completedDateTime | DateTimeOffset | The date when the task was finished. Inherited from baseTask. |
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'. Inherited from baseTask. |
displayName | String | The name of the task. Inherited from baseTask. |
dueDateTime | dateTimeTimeZone | The date in the specified time zone that the task is to be finished. Inherited from baseTask. |
id | String | Unique identifier for the task. By default, this value will not change if a task is moved from one list to another. Inherited from baseTask. |
importance | importance | The importance of the task. Possible values are: low , normal , high . Inherited from baseTask. The possible values are: low , normal , high . |
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'. Inherited from baseTask. |
viewpoint | taskViewpoint | Properties that are personal to a user such as reminderDateTime and categories. Inherited from baseTask. |
recurrence | patternedRecurrence | The recurrence pattern for the task. Inherited from baseTask. |
startDateTime | dateTimeTimeZone | The date in the specified time zone when the task is to begin. Inherited from baseTask. |
status | taskStatus_v2 | Indicates the state or progress of the task. Possible values are: notStarted , inProgress , completed ,unknownFutureValue . Inherited from baseTask. |
Relationship | Type | Description |
---|---|---|
checklistItems | checklistItem collection | A collection of checklistItems linked to a task. Inherited from baseTask |
extensions | extension collection | The collection of open extensions defined for the task . Inherited from baseTask |
linkedResources | linkedResource_v2 collection | A collection of resources linked to the task. Inherited from baseTask |
parentList | baseTaskList | The list which contains the task. Inherited from baseTask |
The following JSON representation shows the resource type.
{
"@odata.type": "#microsoft.graph.task",
"textBody": "String",
"createdDateTime": "String (timestamp)",
"lastModifiedDateTime": "String (timestamp)",
"bodyLastModifiedDateTime": "String (timestamp)",
"completedDateTime": "String (timestamp)",
"dueDateTime": {
"@odata.type": "microsoft.graph.dateTimeTimeZone"
},
"startDateTime": {
"@odata.type": "microsoft.graph.dateTimeTimeZone"
},
"importance": "String",
"recurrence": {
"@odata.type": "microsoft.graph.patternedRecurrence"
},
"displayName": "String",
"status": "String",
"viewpoint": {
"@odata.type": "microsoft.graph.taskViewpoint"
},
"id": "String (identifier)"
}
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register now