Dec 16 2020 12:50 PM
Hi. I am trying to get the various settings of fail/replace/rename to work, in both C# code and when this has failed in Postman. I am using it in an upload session. The URL is https://graph.microsoft.com/v1.0/sites/mysite/drives/driveidhere/root:/testfile.txt:/createUploadSes...
The JSON body is
Dec 17 2020 12:46 AM
Just to say I have this working - the documentation is appalling!
The page https://docs.microsoft.com/en-us/graph/api/driveitem-createuploadsession?view=graph-rest-1.0
does not show that in the request the conflict behaviour setting should be wrapped in an "item" object. Please can we have some more examples in the documentation.
Thanks
May 06 2021 12:10 PM
May 21 2022 04:18 AM
@Paul_Red1 as states the documentation at driveItem resource type:
Notes: The parameter @microsoft.graph.conflictBehavior should be included in the URL instead of the body of the request.
So try to include it in the URL not in the body.