{"id":5211,"date":"2020-08-21T14:50:21","date_gmt":"2020-08-21T21:50:21","guid":{"rendered":"https:\/\/officedevblogs.wpengine.com\/?p=5211"},"modified":"2020-08-21T14:50:21","modified_gmt":"2020-08-21T21:50:21","slug":"the-new-improved-microsoft-graph-to-do-apis-are-now-in-public-preview","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/the-new-improved-microsoft-graph-to-do-apis-are-now-in-public-preview\/","title":{"rendered":"The new &amp; improved Microsoft Graph To Do APIs are now in Public Preview"},"content":{"rendered":"<p>At Microsoft Build 2020, we <a href=\"https:\/\/developer.microsoft.com\/en-us\/graph\/blogs\/introducing-the-new-microsoft-graph-to-do-api\/\">introduced<\/a> the new <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/todo-concept-overview?view=graph-rest-beta\">Microsoft Graph To Do APIs<\/a>. Today, we\u2019re excited to announce that APIs are now available in public preview on the beta endpoint of Graph.<\/p>\n<p><a href=\"https:\/\/www.microsoft.com\/en-in\/microsoft-365\/microsoft-to-do-list-app?rtc=1\">Microsoft To Do<\/a> and <a href=\"https:\/\/www.microsoft.com\/en-us\/microsoft-365\/business\/task-management-software\">Planner<\/a> form the backbone of tasks in Microsoft 365. <a href=\"https:\/\/www.youtube.com\/watch?v=br36gZeC49M\">To Do<\/a> is ideal for managing personal tasks across work and life while Planner is great for team tasks. Tasks come from everywhere, and millions of people use To Do as single destination to understand and manage their personal tasks. Besides offering best in class mobile apps for Android, iOS, Windows, Mac, and web, To Do is also deeply integrated with <a href=\"https:\/\/techcommunity.microsoft.com\/t5\/microsoft-365-blog\/connecting-tasks-experiences-across-microsoft-365\/ba-p\/1522069\">Microsoft 365 hubs<\/a>, <a href=\"https:\/\/www.youtube.com\/watch?v=ovREG-yI18o\">Outlook<\/a>, and <a href=\"https:\/\/techcommunity.microsoft.com\/t5\/planner-blog\/announcing-tasks-in-microsoft-teams-public-rollout\/ba-p\/1502225\">Teams<\/a>. Using the new APIs, developers can bring tasks from their apps into To Do and become a core part of users\u2019 productivity stories in Microsoft 365.<\/p>\n<h3>API details<\/h3>\n<p>We have a <strong><em>todoTaskList<\/em><\/strong> entity, consisting of a collection of <strong><em>todoTask<\/em><\/strong> entities. Also, we are introducing a new entity called <strong><em>linkedResource<\/em> <\/strong>which enables task completion. You can use it to store and display the link back to the item in your app from where the task was created.<\/p>\n<p><img decoding=\"async\" class=\"alignleft wp-image-5212\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2020\/08\/API-1024x633.png\" alt=\"a screenshot showing multiple tasks assigned to a user\" width=\"650\" height=\"402\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2020\/08\/API-1024x633.png 1024w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2020\/08\/API-300x185.png 300w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2020\/08\/API-768x475.png 768w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2020\/08\/API.png 1029w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>The new APIs support work, school, and personal Microsoft accounts. The required permission scope is <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/permissions-reference#tasks-permissions\">Tasks.ReadWrite<\/a>. We\u2019ll support the following endpoints:<\/p>\n<table style=\"height: 154px\" width=\"1087\">\n<tbody>\n<tr>\n<td width=\"179\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/todotasklist?view=graph-rest-beta#methods\">CRUD operation on todoTaskList entity<\/a><\/td>\n<td width=\"650\">\u00a0\/me\/todo\/lists<\/td>\n<\/tr>\n<tr>\n<td width=\"179\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/todotask?view=graph-rest-beta#methods\">CRUD operation on todoTask entity<\/a><\/td>\n<td width=\"650\">\u00a0\/me\/todo\/lists\/&lt;listId&gt;\/tasks<\/td>\n<\/tr>\n<tr>\n<td width=\"179\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/linkedresource?view=graph-rest-beta#methods\">CRUD operation on linkedResource entity<\/a><\/td>\n<td width=\"650\">\u00a0\/me\/todo\/lists\/&lt;listId&gt;\/tasks\/&lt;taskId&gt;\/linkedResources<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Here are some examples of requests and responses with the new APIs.<\/p>\n<ol>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/todo-list-lists?view=graph-rest-beta#examples\">List all task lists<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/todotasklist-post-tasks?view=graph-rest-beta#examples\">Create task in a task list<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/todotask-post-linkedresources?view=graph-rest-beta#examples\">Create linked resource<\/a><\/li>\n<\/ol>\n<h3>Use cases<\/h3>\n<p>Partners in our preview program are using To Do APIs to support the following use cases:<\/p>\n<ol>\n<li>Create tasks from your app\u2019s workflow (tasks from email, notifications, etc.) and save them into To Do. (Don\u2019t forget to use the <em>linkedResource<\/em> entity to store the link back to your app!)<\/li>\n<li>Sync your app\u2019s existing tasks with To Do and create a single task view for better task prioritization and manageability.<\/li>\n<\/ol>\n<ol start=\"3\">\n<li>Manage user To Do tasks in your custom business application.<\/li>\n<\/ol>\n<p>To see this in action, check out our partner demos in our <a href=\"https:\/\/www.youtube.com\/watch?v=WhFZlLL4Sq4\">Build 2020 session<\/a>.<\/p>\n<h3>Deprecation of Outlook Tasks APIs<\/h3>\n<p>Microsoft To Do is the upgraded version of the classic Outlook Tasks experience. The underlying storage and basic schema are exactly same. But with its new modern experience, To Do brings new modern task management capabilities like <em>linkedResource<\/em>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/opentypeextension?view=graph-rest-1.0\"><em>data<\/em> <em>extensions<\/em><\/a>, and more.<\/p>\n<p>We\u2019re replacing the Outlook Tasks experience with To Do, starting with Outlook for the web. Replacing APIs is a crucial part of this modernization. Now that the To Do APIs are available in beta, developers should update any existing processes or integrations that use the <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/outlooktask?view=graph-rest-beta\">Graph Outlook Tasks beta APIs<\/a> so, they can use the new To Do APIs. We\u2019re deprecating Outlook Tasks APIs with this release. <strong>Graph Outlook Tasks APIs will stop returning data after August 20, 2022.<\/strong><\/p>\n<p>Apart from the new capabilities, To Do APIs has most of the Outlook Task capabilities. Please note that <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/outlooktaskgroup?view=graph-rest-beta\"><em>outlookTaskGroup<\/em><\/a> entity, <em>extended properties<\/em> and <em>assignedTo<\/em>, owner properties of <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/outlooktask?view=graph-rest-beta\"><em>outlookTask<\/em><\/a> entity won\u2019t be available in To Do APIs. We hope to release few other outlookTask properties like <em>attachments<\/em>, <em>categories<\/em><em>,<\/em> etc. in future releases. Please let us know on our <a href=\"https:\/\/microsoftgraph.uservoice.com\/forums\/920506-microsoft-graph-feature-requests\/filters\/hot?category_id=373861\">User Voice<\/a> page if you would like us to prioritize any particular capability.<\/p>\n<p>To transition to the new APIs, some query changes are necessary. For example, to get the properties and relationships of a task, the old query would look like:<\/p>\n<p>GET https:\/\/graph.microsoft.com\/beta\/me\/outlook\/tasks\/{id}<\/p>\n<p>The new query will look like:<\/p>\n<p>GET <a href=\"https:\/\/graph.microsoft.com\/beta\/me\/todo\/lists\/%7bid%7d\/tasks\/%7bid%7d\">https:\/\/graph.microsoft.com\/beta\/me\/todo\/lists\/{id}\/tasks\/{id}<\/a><\/p>\n<p>For more information check out the <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/todo-overview?view=graph-rest-beta\">documentation<\/a>.<\/p>\n<h3>Next steps<\/h3>\n<p>We expect to make To Do APIs generally available on Microsoft Graph by the end of 2020. Our API roadmap contains previews of new capabilities like <em>webhooks<\/em>.<\/p>\n<p>You can use the preview of <a href=\"https:\/\/github.com\/microsoftgraph\/microsoft-graph-toolkit\/releases\/tag\/v1.4.0-preview.1\">To Do component<\/a> from <a href=\"https:\/\/www.npmjs.com\/package\/@microsoft\/mgt\">Microsoft Graph Toolkit<\/a> for reusable, framework-agnostic web components and helpers for accessing and working with Microsoft Graph.<\/p>\n<p>We can\u2019t wait to see what you\u2019ll do with the new To Do APIs.\u00a0 You can explore them now on <a href=\"https:\/\/developer.microsoft.com\/en-us\/graph\/graph-explorer\">Microsoft Graph Explorer<\/a>, and if you have any feedback, suggestions or question, email us at\u00a0<a href=\"mailto:todofeedback@microsoft.com\">todofeedback@microsoft.com<\/a>\u00a0or let us know on our\u00a0<a href=\"https:\/\/microsoftgraph.uservoice.com\/forums\/920506-microsoft-graph-feature-requests\/filters\/hot?category_id=373861\">UserVoice<\/a>\u00a0page or on <a href=\"https:\/\/stackoverflow.com\/questions\/tagged\/microsoft-graph-api+todo\">Stack Overflow<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019re excited to announce that APIs are now available in public preview on the beta endpoint of Graph.<\/p>\n","protected":false},"author":69076,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-5211","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph"],"acf":[],"blog_post_summary":"<p>We\u2019re excited to announce that APIs are now available in public preview on the beta endpoint of Graph.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/5211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69076"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=5211"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/5211\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=5211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=5211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=5211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}