Forum Discussion
vpatilkop
Feb 10, 2023Copper Contributor
Download specific version of sharepoint file using graph api
I want to download specific version of file using below graph api.
/drive/items/{item-id}/versions/{version-id}
As per MSDN documentation - driveitemversion Above api provides "Pernille-Eskebo.graph.downloadUrl" property which is direct download link of the file/version.
but API is not returning above mentioned property in response JSON. below is response JSON. I want that Pernille-Eskebo.graph.downloadUrl to be returned in JSON.
{
"content": { "@odata.type": "Edm.Stream" },
"id": "string",
"lastModifiedBy": { "@odata.type": "microsoft.graph.identitySet" },
"lastModifiedDateTime": "2016-01-01T15:20:01.125Z",
"size": 12356,}
}
No RepliesBe the first to reply