PATCH does not update birthday of contact

Melle Boudewijns 1 Reputation point
2022-10-03T13:12:10.353+00:00

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?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,570 questions
{count} votes

2 answers

Sort by: Most helpful
  1. 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".

    0 comments No comments

  2. Melle Boudewijns 1 Reputation point
    2022-10-05T13:22:48.59+00:00

    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.

    0 comments No comments