Forum Discussion
srrepswal
Jun 22, 2021Copper Contributor
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?
Hello srrepswal,
There is a dedicated Planner community - this is the Project community, you might find you get a quicker response here for Planner queries in the furture: https://techcommunity.microsoft.com/t5/planner/ct-p/Planner
To be able to set the priority value you will need to be using the beta API and not version 1.0 - https://graph.microsoft.com/beta. It is not possible to set the Notes field (well not according to the docs)
There is also a dedicate forum for the Tasks Graph API: https://docs.microsoft.com/en-us/answers/topics/microsoft-graph-tasks-plans.html
Hope that helps
Paul
Hello srrepswal,
There is a dedicated Planner community - this is the Project community, you might find you get a quicker response here for Planner queries in the furture: https://techcommunity.microsoft.com/t5/planner/ct-p/Planner
To be able to set the priority value you will need to be using the beta API and not version 1.0 - https://graph.microsoft.com/beta. It is not possible to set the Notes field (well not according to the docs)
There is also a dedicate forum for the Tasks Graph API: https://docs.microsoft.com/en-us/answers/topics/microsoft-graph-tasks-plans.html
Hope that helps
Paul