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 Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,506 questions
Microsoft Partner Center API
Microsoft Partner Center API
Microsoft Partner Center: A Microsoft website for partners that provides access to product support, a partner community, and other partner services.API: A software intermediary that allows two applications to interact with each other.
312 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,686 Reputation points Microsoft Vendor
    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