I'm trying to write a jenkins job to automatically check status of Azure DevOps tasks to clean git branches connected to the number of task (git is outside of Azure DevOps).
To get the work item, I found an api call:
GET https://dev.azure.com/{organization}/{project}/_apis/wit/queries/{query}?api-version=5.1
However, when i use it (filled with proper information) i get 203 status code:
16:52:19 Response Code: HTTP/1.1 203 Non-Authoritative Information
16:52:19 Success code from [100‥399]
[Pipeline] echo
16:52:19 Status: 203
I found info that i need to use Personal Access Token somehow to get past this, so i created one, but i can't find the example of PAT usage in an api call to Azure DevOps. Anyone figured that out?