MicrosoftDocs / vsts-rest-api-specs

MIT License
164 stars 116 forks source link

404 error when trying to fetch Work Item search results #373

Open landrudtsx opened 4 years ago

landrudtsx commented 4 years ago

I'm attempting to send a request to the following URL (changing the collection and project of course) but all I get is a 404 status code:

https://dev.azure.com/{collection}/{project}/_apis/search/workitemsearchresults?api-version=5.0-preview.1

I tried changing the API version as well but I'm facing the same error. Any help will be appreciated.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

luorigufeng commented 4 years ago

me too,api-version=4.0

landrudtsx commented 4 years ago

I never got to make this API call to work but I found a workaround running a WIQL query to get a list of the work items I needed. https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/wiql/query%20by%20wiql

luorigufeng commented 4 years ago

Great! The wiql is more generic than specified API, more important, it can replace the 404 API.

melih154 commented 3 years ago

Docs states API URI as https://almsearch.dev.azure.com not https://dev.azure.com. Had the same issue, fixed after replacing base URI

bmarotta commented 2 weeks ago

What about on premise versions? On my local Azure DevOps Server 2020 it works, on a customer he gets a 404