Microsoft Graph Todo/Task Attachments

Willem Koopman 21 Reputation points
2022-01-11T04:29:21.09+00:00

Hi,

I am looking for advice on if/when the Graph API v1.0 (or beta) will have analogues to the outlook api calls below

GET https://outlook.office.com/api/v2.0/me/tasks('{task_id}')/attachments
POST https://outlook.office.com/api/v2.0/me/tasks('{task_id}')/attachments
DELETE https://outlook.office.com/api/v2.0/me/tasks('{task_id}')/attachments('{attachment_id}')

from https://learn.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/task-rest-operations

As it appears outlook endpoints will be deprecated towards the end of this year we need to make decisions on how to support task/todo attachments in our production systems.

Any advice appreciated.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,539 questions
{count} votes

Accepted answer
  1. JanardhanaVedham-MSFT 3,536 Reputation points
    2022-01-11T06:55:33.123+00:00

    Hi @Willem Koopman ,

    Currently there are no Microsoft Graph APIs available to add/get/delete attachment for To Do Tasks resource type either in V1.0 or beta. As per this MS documentation , attachments propery and related methods are planned to be added to Microsoft Graph To Do APIs in future releases. Incase this is a priority requirment for you, you can submit this feature request idea using this support link, which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs. At present, attachements can be added to To Do Task from TO DO UI after the new task creation.

    Below is the screenshot form this Microsoft documentation :

    163831-image.png

    Adding attchment for TO DO UI for the exisitng task:
    163842-image.png
    Please refer the below documenation links for more information on the current supported methods and properties of Microsoft Graph To Do API :

    https://learn.microsoft.com/en-us/graph/api/resources/todotask?view=graph-rest-1.0
    https://learn.microsoft.com/en-us/graph/api/resources/todotask?view=graph-rest-beta
    https://devblogs.microsoft.com/microsoft365dev/the-new-improved-microsoft-graph-to-do-apis-are-now-in-public-preview/

    If the answer is helpful, please click "Accept Answer" and kindly upvote it ,so that it will be helpful to the other community users. If you have any further questions about this answer, please click "Comment".

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful