Microsoft Graph API - Invite endpoint returning Bad request every time
I'm trying to share SharePoint directory so specific user invite the invite API endpoint from Microsoft Graph : https://learn.microsoft.com/en-us/graph/api/driveitem-invite
Every time I do the request, I'm receiving a "400 - Bad request" response.
Here is my request: https://graph.microsoft.com/v1.0/sites/***/drives/***/items/***/invite
Here is the payload: { "requireSignIn": true, "sendInvitation": false, "roles": [ "read" ], "recipients": [ { "email": "***@***.***" } ] }
It used to work perfectly.
A colleague of yours asked me to enter a Microsoft Support ticket : https://stackoverflow.com/questions/64889777/microsoft-graph-api-invite-endpoint-returning-bad-request-every-time