How to get DownloadUrl for specific version of a file with a DriveItemVersion?

WoodingMP 1 Reputation point
2022-11-14T16:44:17.747+00:00

Hi, I'm trying to use the Graph API to get all the versions of a given file on Sharepoint and be able to download the different versions.

In the docs (https://learn.microsoft.com/en-us/graph/api/resources/driveitemversion?view=graph-rest-1.0) it mentions that I should be able to get @microsoft.graph.downloadUrl from a DriveItemVersion, but when I send a GET:

/sites/siteID/drive/items/itemID/version/versionID   

I only get back the properties, not the instance attribute for the download Url. Is there any other way to get the download Url for a specific version of a file, or could I get some help please trying to work out why I'm unable to access the instance attribute with my current request?
Thanks!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,338 questions
{count} votes