Error when Creating Email Simulation using Microsoft Graph Explorer

Sana Qazi 0 Reputation points
2023-11-01T08:30:27.01+00:00

I'm attempting to create a simulation email with Microsoft Graph Explorer but have encountered an error message labeled with "BadRequest." It's related to the "endUserNotification" property within the payload; the provided value does not conform to the expected schema. The error message includes the following JSON:

"error": {
        "code": "BadRequest",
        "message": "Property endUserNotification in payload has a value that does not match schema.",
        "innerError": {
            "date": "2023-11-01T05:56:30",
            "request-id": "ceccb0a9-699a-4245-a286-a77516bdfdab",
            "client-request-id": "b0c432f7-9ec1-b355-17fc-9f9c16c0609f"
        }

I've referred to an example from Microsoft on creating simulations, but the error persists. The example is available at:

https://learn.microsoft.com/en-us/graph/api/attacksimulationroot-post-simulation?view=graph-rest-1.0

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,145 questions
0 comments No comments
{count} votes