Reputation: 363
I am attempting to get Feed/Package information from VSTS via the REST API. I have successfully used the REST API to access/update build definitions and variable groups. When I issue a request such as the following (replacing {...} with the actual values), all I get back is a 404 error 'Page not found'.
https://{accountName}.visualstudio.com/_apis/packaging/Feeds/{feedId}/packages?api-version=5.0-preview.1
I have tried other requests in the same area (Feed/Packages) and used other api-version values and they all give me the same response. I have had others confirm the commands I have tried are properly formatted. I am using Basic authentication with a PAT (the same one I use for the requests that do work).
Any insights would be appreciated.
Upvotes: 1
Views: 816
Reputation: 341
Not sure why Microsoft official documentation dont mention this but the below api does the job -
https://<your organization name>.feeds.visualstudio.com/_apis/packaging/Feeds/<feedID>/Packages?api-version=5.1-preview.1
Upvotes: 0
Reputation: 33698
Using this endpoint URL instead (append .feeds
after account):
https://{accountName}.feeds.visualstudio.com/_apis/packaging/Feeds/{feedId}/packages?api-version=5.0-preview.1
Upvotes: 1