Forum Discussion

srrepswal's avatar
srrepswal
Copper Contributor
Jun 22, 2021

How to put Notes and priority fields data in Task POST API

I am able to create task through API but I am including Notes and priority field but while I am checking it through API, Notes are not visible there.
Below is the API:

POST: https://graph.microsoft.com/v1.0/planner/tasks

Body: 

{
  "planId""XXXXXXXXXXXXXX-",
  "bucketId""x_XXXXXX",
  "title""Postman Test 13",
  "dueDateTime""2021-06-15",
  "priority" : 1,
  "importance""high",
  "description""This is test description",
  "Notes""Test Notes",
  "body": {
        "content""This is test body",
        "contentType""text"
  },
  "Subject""Test Subject",
  "appliedCategories": {
    "category5"true,
    "category7"true
  }
}
For priority I am using valid range of values between 0 and 10.
Notes and Priority are not working as expected through API.
How can I resolve this?

Resources