Search code examples
c#-4.0office365office365apioffice365-restapi

Office 365 Update Contacts


i am using the REST API V1.0 to fetch and create contact, i wanted to use update contact based on the ID in v1.0, what is the parameter needs to be passed for same.

to create new contact i am using https://outlook.office365.com/api/v1.0/me/contacts and to fetch contacts https://outlook.office365.com/api/v1.0/me/contacts?$select=EmailAddresses

Please let me know the same for update in V1.0


Solution

  • To update you need to PATCH to the URL of the contact (/me/contacts/<contactId>). The body would be a JSON payload with the properties to update.

    Your OAuth error seems to indicate that you're not including your access token in the Authorization header.