It's all about the answers!

Ask a question

Is it possible to run a query via REST?


yevsh shhshs (113) | asked Aug 16 '17, 7:49 a.m.

 I have few queries that return  workitems. 


Is there a REST api that does that?

One answer



permanent link
yevsh shhshs (113) | answered Aug 16 '17, 10:08 a.m.

 After researching I found that  I can run query


like: this


This return the result set as text. Is it possible to get it as json?
application/json is not working, text/json nither


Comments
Donald Nong commented Aug 22 '17, 8:50 p.m.

Note that you're calling the query directly, not using REST API.

From what I can see, the URL that you used only returns CSV or HTML content.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.