Receiving 400 Bad Request error when attempting to use the Invite endpoint for a folder in a SharePoint document library. Request header payload has "RequireSignIn" set to true and SendInvitation set to false.
HTTP/1.1 400 Bad Request
Cache-Control: no-store, no-cache
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000
request-id: 729043af-4f33-48e2-9706-8dc1e1b51516
client-request-id: 729043af-4f33-48e2-9706-8dc1e1b51516
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"South Central US","Slice":"E","Ring":"5","ScaleUnit":"004","RoleInstance":"SA2PEPF00001A30"}}
Link: https://developer.microsoft-tst.com/en-us/graph/changes?$filterby=v1.0,Removal&from=2021-09-01&to=2021-10-01;rel="deprecation";type="text/html"
, https://developer.microsoft-tst.com/en-us/graph/changes?$filterby=v1.0,Removal&from=2021-09-01&to=2021-10-01;rel="deprecation";type="text/html"
Deprecation: Fri, 03 Sep 2021 23:59:59 GMT
Sunset: Sun, 01 Oct 2023 23:59:59 GMT
Date: Mon, 24 Jul 2023 16:56:14 GMT
Content-Type: application/json
Content-Encoding: gzip
Content-Length: 190
{"error":{"code":"invalidRequest","message":"RequireSignIn and SendInvitation cannot both be false","innerError":{"date":"2023-07-24T16:56:15","request
-id":"729043af-4f33-48e2-9706-8dc1e1b51516","client-request-id":"729043af-4f33-48e2-9706-8dc1e1b51516"}}}
Can verify the same error is received when attempting the POST via Graph Explorer.
{
"error": {
"code": "invalidRequest",
"message": "RequireSignIn and SendInvitation cannot both be false",
"innerError": {
"date": "2023-07-24T16:56:52",
"request-id": "cb928d1b-6299-4215-bcce-b60576c46940",
"client-request-id": "104729e1-c9d5-59a4-00d3-90ad5263ef51"
}
}
}
Thanks,
Thomas