office365 - How to add task in plan through Microsoft Graph API -


i want know how create task in planner plan using microsoft graph api. i'm trying crate task in planner plan using "create task" api, got unknownerror.

{     "error": {         "code": "unknownerror",         "message": "",         "innererror": {             "request-id": "2303b87d-fb0c-431c-9336-c93908758d25",             "date": "2016-06-28t10:16:56"         }     } } 

as document described posted api this.

post https://graph.microsoft.com/beta/tasks content-type: application/json content-length: 192 {   "assignedto": "<i set uuid>",   "planid": "<i set planid created>",   "bucketid": "<i set bucketid included plan>",   "title": "test4",   "orderhint": "a" } 

any ideas i'm going wrong? if know how add task in planner plan, please share idea?

the api updated masayuki - new endpoints. think main issue code though orderhint should " !" adds @ start. don't set orderhint such - set how new task relates existing ones. new documentation on microsoft graph site , linked blog post below.

the current beta endpoint should https://graph.microsoft.com/beta/planner/tasks

take @ latest blog post has script attached walks through steps these. https://blogs.msdn.microsoft.com/brismith/2017/04/17/planner-cloning-a-plan-with-multiple-assignments/

best regards, brian


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -