Reputation: 3251
My request looks like this:
https://graph.microsoft.com/v1.0/me/drive/root:/myfolder/myfilename:/createUploadSession
with this header:
headers["Content-Type"] = "application/json"
and this json body:
{\"item\":{\"@odata.type\":\"microsoft.graph.driveItemUploadableProperties\",\"@microsoft.graph.conflictBehavior\":\"replace\",\"fileSize\":\(fileSize!)},\"deferCommit\":false}"
This works fine on a personal OneDrive account but fails with an "Invalid Request" error on a business account.
I'm using MSAL to authenticate to MSGraph.
Do we need to do something different for a business accounts ?
Thanks for your help.
Upvotes: 0
Views: 323
Reputation: 3251
I tried all the items properties one by one and figured out that the business account does not like the filesize item nor the deferCommit. I'm able to add the conflictBehaviour and it pass.
See here for more details.
See also Service issue report
Upvotes: 2