I tested it in more detail and found that it was actually an issue in an other field (emailadress) that caused the problem. I did not see that the email addresses were sent too.
PATCH does not update birthday of contact
When we create a contact record with a POST request the birth date is set, but when we try to update it with a PATCH request we receive a 406 error. Does anybody knows a solution?
2 answers
Sort by: Newest
-
-
HarmeetSingh7172 4,811 Reputation points
2022-10-03T23:09:18.13+00:00 Hi @MelleBoudewijns-1749
Thank you for reaching out!
I am unable to reproduce this behavior. I'm able to create and further update birthday property of a contact record successfully.
Generally 406 error signifies "This service doesn’t support the format requested in the Accept header". Please ensure that you are using right content-type. i.e., For PATCH request, you need to add Accept application/json in header.
Refer- https://learn.microsoft.com/en-us/graph/errors#http-status-codes
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote. If you have further questions about this answer, please click "Comment".