We are unable to create a webhook subscription for the creation of new calendars, as we are receiving an error response for the provided request body.
API: https://graph.microsoft.com/v1.0/subscriptions
Request Body
{
changeType: "created,updated,deleted",
notificationUrl: "https://90f7-49-14-113-152.ngrok-free.app/email-api/webhooks/azure",
resource: "me/calendars",
expirationDateTime: "2024-06-06T18:23:45.9356913Z",
clientState: "secretClientValue"
}
Response Body
{
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: BadRequest; Reason: Subscribing to folder hierarchy for Created event is not allowed.]",
"innerError": {
"date": "2024-06-06T08:53:18",
"request-id": "af1fd2a4-8474-4683-9264-108fd8e08e5b",
"client-request-id": "af1fd2a4-8474-4683-9264-108fd8e08e5b"
}
}
}