Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,506 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Is there some way to use the REST Graph API or some other to get the version history of a document that is on OneDrive or SharePoint?
Hello @Yamilla Manjko ,
Please refer to driveitem-list-versions.
Using GET /drive/{drive-id}/items/{item-id}/versions
should be able to get version history of a document from OneDrive for Business or SharePoint libraries.
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".