How to automatically download files from Sharepoint via REST API using postman

Viewed 1012

Stuck with a requirement where I have some CSV files in Sharepoint and I need to download them using REST API.

I am using postman for this task. After generating access token and running the REST API

https://xyz.sharepoint.com/sites/YYYFILES/_api/Web/GetFolderByServerRelativeUrl('test_library/lib')/Files

in postman, I am able to see JSON but files are not being downloaded automatically in local system.

Your ideas will be so helpful!

Thanks a ton in Advance!

enter image description here

1 Answers

Please try to add '$value' after '/Files'

Here is an example you can refer to:

https://xxxxx.sharepoint.com/sites/_api/web/GetFolderByServerRelativeUrl('test_library/lib')/Files('Document1.docx')/$value
Related