Lodol Docs

Microsoft To Do

API actions for the Microsoft To Do integration.

Microsoft To Do

Manage tasks in Microsoft To Do via Microsoft Graph.


Complete task

Mark a task as completed in Microsoft To Do.

Parameters

ParameterTypeRequiredDescription
list_idstringYesThe task list ID.
task_idstringYesThe task ID to complete.

Response

{
  "list_id": "list123",
  "result": {
    "status": "completed"
  },
  "task_id": "task123"
}

Create task

Create a new task in Microsoft To Do.

Parameters

ParameterTypeRequiredDescription
list_idstringYesThe target To Do list ID.
titlestringYesTask title.
bodystringNoOptional task note.
due_datetimestringNoOptional due date/time in ISO 8601 format.
time_zonestringNoTime zone for due_datetime.
importancestringNoTask importance: low, normal, or high.

Response

{
  "list_id": "list123",
  "task": {
    "id": "task123",
    "title": "New Task"
  }
}

List task lists

List all task lists in Microsoft To Do.

Parameters

ParameterTypeRequiredDescription
topnumberNoOptional maximum number of task lists to return.

Response

{
  "lists": [
    {
      "displayName": "My Tasks",
      "id": "list123"
    }
  ]
}

List tasks

List tasks in a Microsoft To Do task list.

Parameters

ParameterTypeRequiredDescription
list_idstringYesThe list ID to fetch tasks from.
topnumberNoOptional maximum number of tasks to return.

Response

{
  "list_id": "list123",
  "tasks": [
    {
      "id": "task1",
      "title": "Task 1"
    }
  ]
}

Update task due date

Update the due date of a task in Microsoft To Do.

Parameters

ParameterTypeRequiredDescription
list_idstringYesThe task list ID.
task_idstringYesThe task ID to update.
due_datetimestringYesNew due date and time (ISO 8601).
time_zonestringNoTime zone for due_datetime (defaults to UTC).

Response

{
  "list_id": "list123",
  "result": {
    "dueDateTime": {
      "dateTime": "2024-12-31T23:59:59",
      "timeZone": "UTC"
    }
  },
  "task_id": "task123"
}

On this page