Get version history of a Word online document through REST API?

Yamilla Manjko 6 Reputation points
2022-11-04T15:24:03.937+00:00

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?

Microsoft Partner Center API
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,766 Reputation points Microsoft External Staff
    2022-11-04T16:41:08.627+00:00

    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".

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.