API to Create Card in Planner

Iron Contributor

Are there any code samples available yet that show how to via code create a new card/task in Planner?

3 Replies
Microsoft Graph is the unified API to work with all the Office 365 services: https://msdn.microsoft.com/en-us/office/office365/howto/platform-development-overview

Right I kinda assume that.  Looking for a code sample explicity showing creating a card in a Planner bucket.  So far I haven't come across anything.

POST 
https://graph.microsoft.com/beta/planner/tasks

 

{
"planId": "Plan ID String",
"bucketId": "Bucket ID String",
"title": "Testing Task 1",
"assignments": {
"User Assigned to ID Number": {
"@odata.type": "#microsoft.graph.plannerAssignment",
"orderHint": " !"
}
},
}