How many versions does a Drive Item need until it gets paginated via Graph API?

eggy mcegg 100 Reputation points
2024-09-17T09:33:47.3966667+00:00

If I am getting a DriveItem and expanding its versions i.e.

/drives/{id}/items/{id}?$expand=versions

How many versions will there be until pagination kicks in (in the inner versions array)? I can't find the number anywhere in the documentation. I am doing some manual tests but it's taking forever editing a file every 5 minutes.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,056 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,121 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,989 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 106.3K Reputation points MVP
    2024-09-17T16:19:51.6733333+00:00

    I'm not even sure the resource supports pagination, but in any case it seems to be OK with 200 versions. I would not recommend relying on $expand for such operations however, as the operator has some known limitations for other resources. I'd use /versions instead.


0 additional answers

Sort by: Most helpful

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.