Mteteleli Vas
Mteteleli Vas

Reputation: 3

Microsoft Azure Graph API Subscription Errors on Validation request using Custom Api as Listener for notifications

I have looked at the post of people saying the resolved this issue by allowing the API to accept "text/plain".

Even though I have done so, I am still getting the below error:

"{ \"error\": { \"code\": \"InvalidRequest\", \"message\": \"Subscription validation request failed. Notification endpoint must respond with 200 OK to validation request.\", \"innerError\": {
\"request-id\": \"ec325726-5b30-4cb1-bec5-3ba3debf88b0\",
\"date\": \"2020-03-23T13:02:01\" } }}"

I have tested my API on Postman using the same request Microsoft sends when they are validating an API. All seems to be fine in Postman.

The image shows Postman results:

The image shows Postman results

Please help.

Upvotes: 0

Views: 563

Answers (1)

baywet
baywet

Reputation: 5342

Subscribing to user's mailbox settings for change notifications is not supported at the moment by Microsoft Graph. If you'd like to request support for such feature, please go to uservoice and create/upvote an idea.
If it were to be added to supported resources for change notifications, it more than likely that the resource would be /users/{userid}/mailboxsettings as /users/mailboxsettings is not a valid resource on Microsoft Graph. (resources for subscriptions follow the same pattern as the URLs of the APIs)

Upvotes: 1

Related Questions