Create subscription API in Microsoft Graph fails to validate incorrect notification url

Chetna Agrawal 5 Reputation points
2024-02-29T07:40:27.3966667+00:00

I am passing incorrect notification url in create subscription request, and response is 201 "Created", where ideally it should fail and return 400 "Bad Request". Steps to reproduce the behavior Fire create subscription API via postman: Url - https://graph.microsoft.com/v1.0/subscriptions
Request Type - POST
Body -
{
"changeType": "created",
"notificationUrl": "https://webhook.azurewebsites.net/api/send/myNotifyClient",
"resource": "me/mailFolders('Inbox')/messages",
"expirationDateTime":"2016-11-20T18:23:45.9356913Z",
"clientState": "secretClientValue",
"latestSupportedTlsVersion": "v1_2"
}

Microsoft Security Microsoft Graph
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.