Forum Discussion
Si_Da
Jan 31, 2020Brass Contributor
404 Not Found - SharePoint Server 2016 - POSTMAN REST API
Try as I might to create the URL in Postman, I am constantly getting a 404 Not Found error when I try and GET a document (basically a file exists check). I am accessing SharePoint on premises 201...
synkopat
Apr 21, 2020Copper Contributor
Si_Da You got to make sure that the user you are requesting the token on behalf of have access to the library where the document resides.
The api documentation is not great. We have found that doing it via Microsoft Graph is a better option, it may be a bit more laborious but they have a Postman Collection which is great for getting started. You can see how here: https://docs.microsoft.com/en-us/graph/use-postman?view=graph-rest-1.0
We have found that using relative path is very tricky and getting the right syntax have proven to be difficult. So we have stuck to using id's instead.
Hope this is helpful