How to create Checklist Items with Task

Sahi Repswal 161 Reputation points
2021-06-26T16:14:49.03+00:00

Actually, I am creating Tasks by Graph API but I am looking for create Checklist items also with the Tasks or by calling another API. Can you please let me know about the EndPoint?

Community Center Not monitored
0 comments No comments
{count} votes

Accepted answer
  1. Sahi Repswal 161 Reputation points
    2021-06-28T10:08:45.677+00:00

    I did it by PATCH API
    https://graph.microsoft.com/v1.0/planner/tasks/{taskId}/details
    Body:
    {
    "checklist": {
    "1":{
    "@odata.type": "microsoft.graph.plannerChecklistItem",
    "title": "Update task details"
    },
    "2":{
    "@odata.type": "microsoft.graph.plannerChecklistItem",
    "title": "Task Comple"
    }
    }
    }

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Escalera, Roberto 1 Reputation point
    2021-08-15T17:34:49.95+00:00

    Is this still working for you?
    I have tried with the SDK (GetETag() returns null), with with Graph Explorer and with Postman. None work.
    I then used Graph Explorer to create a sandbox with sample data thinking that the issue was maybe my organization or permissions and it still didn't work.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.