Hi @Clouse, Dalton M,
Thanks for reaching out to us and your request has been well received.
Firstly, is it possible to confirm with me what checkout API you are using?
I am using POST https://graph.microsoft.com/v1.0/drives/{documentdriveId}/items/{itemId}/checkout.
If you have any differences, please let me know and we will retest.
Secondly, if we're using the same API, it is likely that one of the following is causing the problem, so please troubleshoot each one:
- Check Permissions: Ensure that your app has the correct permissions. For checking out items, you need
Files.ReadWriteorFiles.ReadWrite.Allfor delegated permissions, orFiles.ReadWrite.Allfor application permissions. - Validate API Call: Test the API call using the Microsoft Graph Explorer with another user who has the necessary permissions to see if the issue persists. This can help determine if the problem is with the API call or the server.
- Check Request Details: Ensure that the
driveIdanditemIdare correct. Double-check the URL in your request. Here I am attaching the method to getdriveIdanditemId. You can verify that yours are correct.- Get the Site ID: First, you need the
siteIdof the SharePoint site that contains the document library. You can get this by searching for the site:GET https://graph.microsoft.com/v1.0//sites?search={site-name} - Get the Document Drive ID: Once you have the
siteId, you can retrieve thedriveIdof the document library:GET https://graph.microsoft.com/v1.0/sites/{siteId}/drives - Get the Item ID: Once you have the
driveId, you can retrieve theitemIdof the document library:GET https://graph.microsoft.com/v1.0/drives/{driveId}/root/children
- Get the Site ID: First, you need the
- Server Status: A 500 error is usually a server-side error. Sometimes, the issue might be temporary. Wait for a while and try the request again later.
As for the request ID you mentioned, it was automatically generated when you sent your request. For your safety we do not have access to your environment, so we have no way, via request ID, to see exactly why the problem arose.
Please try to see if my suggestion above works first. If you have any questions, please do not hesitate to contact me.
Moreover, if the issue can be fixed successfully, please click” Accept Answer” so that we can better archive the case and the other community members who are suffering the same issue can benefit from it.