Reputation: 4318
I have a working application integrated with Microsoft Graph with application token received with a certificate. I can subscribe to "updated,deleted" events on user contacts and calendars but I can't subscribe to "updated,deleted,created".
Resource used /users/<email>/contacts
and /users/<email>/calendars
It gives me the following error on POST /subscriptions
:
error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: NotFound; Reason: Not Found]",
"innerError": {
"request-id": "<skip>",
"date": "<skip>"
}
I just checked with a sandbox and it works with a user authenticated (I haven't check fully but at least it timeouts on a server side). Though with application token it's not working.
Upvotes: 1
Views: 731
Reputation: 4318
I think I made something wrong in the beginning.
/users/<email>/calendars
is a wrong link. To get user events it should be /users/<email>/calendar/events
.
And /users/<email>/contacts
created is working properly.
Upvotes: 0
Reputation: 182
Drive root item notifications support only the updated changeType. User and group notifications support updated and deleted changeType.
Upvotes: 0
Reputation: 79
As per the documentation: 'User and group notifications support updated and deleted changeType.'
Reference: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/subscription
Upvotes: 0