I am trying to update a task using postman. I have used this body from Microsoft documentation.
PATCH https://graph.microsoft.com/v1.0/planner/tasks/{task-id}
Content-type: application/json
Prefer: return=representation
If-Match: W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc="
"assignments": {
"fbab97d0-4932-4511-b675-204639209557": {
"@odata.type": "#microsoft.graph.plannerAssignment",
"orderHint": "N9917 U2883!"
"appliedCategories": {
"category3": true,
"category4": false
When i sent it in postman, it showed this below error
"error": {
"code": "",
"message": "The If-Match header must be specified for this kind of request.",
"innerError": {
"date": "2022-09-06T05:32:39",
"request-id": "7b55c7bc-d09a-498c-b8be-66338427cfa3",
"client-request-id": "7b55c7bc-d09a-498c-b8be-66338427cfa3"
I have entered the If-Match header in the Headers section of Postman and also in the body. (Refer the below image)
I don't know where else to update the If-Match header content
Hi @Hari Shankar ,
It appears you are using etag
in wrong format, If-Match: W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc="
ideally you should be using in this format If-Match: "JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc="
.
You can also refer to a similar post >> Graph - The If-Match header must be specified for this kind of request
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".