Check-out a DriveItem resource returns Unsupported Segment Type error
We're getting "Bad Request" "Unsupported Segment Type" error when calling the /checkout endpoint on drive items as described in the official documentation: https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_checkout. We posted a question on SO but didn't get any answer except one that is to use the /beta endpoint instead. We actually tried both and non of them worked. Our SO questions is here: https://stackoverflow.com/questions/48902182/sharepoint-unsupported-segment-type-when-checkin-chekout-file/48995349#48995349.
Other endpoints work fine, only the /checkout does not.
Could you please help us resolve the issue? Thanks!
Agreed. Ran into this issue this morning after attempting to check out/in a file while updating a file with the Graph/OneDrive API.
I was able to get the process working with the /beta endpoint, but there is very little documentation on accessing and updating a "locked" file.