0
votes

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

1
I tried with outlook.office.com/api/v1.0/me/contacts/… it is giving Error {"error":{"code":"OAuthMissingForThisService","message":"Authentication for this service requires OAuth: outlook.office.com."}} - Sunil Mathari

1 Answers

1
votes

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.