API to Create Card in Planner

%3CLINGO-SUB%20id%3D%22lingo-sub-39456%22%20slang%3D%22en-US%22%3EAPI%20to%20Create%20Card%20in%20Planner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-39456%22%20slang%3D%22en-US%22%3E%3CP%3EAre%20there%20any%20code%20samples%20available%20yet%20that%20show%20how%20to%20via%20code%20create%20a%20new%20card%2Ftask%20in%20Planner%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-216540%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20API%20to%20Create%20Card%20in%20Planner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-216540%22%20slang%3D%22en-US%22%3E%3CP%3EPOST%26nbsp%3B%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fplanner%2Ftasks%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fplanner%2Ftasks%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3E%22planId%22%3A%20%22Plan%20ID%20String%22%2C%3CBR%20%2F%3E%22bucketId%22%3A%20%22Bucket%20ID%20String%22%2C%3CBR%20%2F%3E%22title%22%3A%20%22Testing%20Task%201%22%2C%3CBR%20%2F%3E%22assignments%22%3A%20%7B%3CBR%20%2F%3E%22User%20Assigned%20to%20ID%20Number%22%3A%20%7B%3CBR%20%2F%3E%22%40odata.type%22%3A%20%22%23microsoft.graph.plannerAssignment%22%2C%3CBR%20%2F%3E%22orderHint%22%3A%20%22%20!%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-39481%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20API%20to%20Create%20Card%20in%20Planner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-39481%22%20slang%3D%22en-US%22%3E%3CP%3ERight%20I%20kinda%20assume%20that.%20%26nbsp%3BLooking%20for%20a%20code%20sample%20explicity%20showing%20creating%20a%20card%20in%20a%20Planner%20bucket.%20%26nbsp%3BSo%20far%20I%20haven't%20come%20across%20anything.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-39479%22%20slang%3D%22en-US%22%3ERE%3A%20API%20to%20Create%20Card%20in%20Planner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-39479%22%20slang%3D%22en-US%22%3EMicrosoft%20Graph%20is%20the%20unified%20API%20to%20work%20with%20all%20the%20Office%20365%20services%3A%20%3CA%20href%3D%22https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Foffice%2Foffice365%2Fhowto%2Fplatform-development-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Foffice%2Foffice365%2Fhowto%2Fplatform-development-overview%3C%2FA%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

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

3 Replies
Highlighted
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
Highlighted

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.

Highlighted

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": " !"
}
},
}