Create change notification subscription for security/alerts

Jérôme 90 Reputation points
2023-12-02T14:46:17.1166667+00:00

Hello,

Would like to create a change notification subscription to get new alerts from security/alerts I have followed the step by step procedure of the Microsoft learn page but I'm not getting the request from graph api to do the validation.

I have made the following request:

User's image

It seems that the change type is not valid , here the respond :

{
    "error": {
        "code": "InvalidRequest",
        "message": "Invalid 'changeType' attribute: 'created'.",
        "innerError": {
            "date": "2023-12-02T14:28:53",
            "request-id": "4694617f-fc31-4d26-a3e0-670807faa2d5",
            "client-request-id": "8385e0c0-f763-a4d6-6498-361c42006039"
        }
    }
}
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,415 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jérôme 90 Reputation points
    2023-12-02T19:29:53.88+00:00

    I have found what was the problem. I have forget the '/' at the end of alerts and subscriptions are not available for alerts_v2.

    0 comments No comments