POST https://graph.microsoft.com/v1.0/drives/{driveId}/items/{itemId}/invite
Request body
{
"recipients":[{"email":"some_valid@ID.com"}],
"message":"",
"requireSignIn":true,
"sendInvitation":false,
"roles":["write"]
}
Answer body:
{
"error": {
"code": "invalidRequest",
"message": "The request is malformed or incorrect.",
"innerError": {
"request-id": "9031d868-5971-4b52-a15e-400e1e6f38be",
"date": "2018-02-21T09:31:36"
}
}
}
This query returns 500 ("Internal server error")or sometimes 400 ("Bad Request")with the same data.
Also with some request, the email id is returned 504 ("Gateway Timeout")on the first call, but on the second call it returns 200 ("OK").
source
share