j.arap j.arap - 3 months ago 30
reST (reStructuredText) Question

TeamCity REST API how to get builds which aren't history builds

How to obtain builds which haven't got "History" value in "Changes" column in Overview. Now I use this url:

http://myteamcity/guestAuth/app/rest/builds/?locator=buildType:Project_Id,branch:feature_1&fields=count,build(buildType(id,name,projectName),number,id,changes(change(date,id,version,username,comment)),status,comment,revisions(revision))
. Is any solution?

Answer

Locator supports history property, so you can simply use history:false in your request to filted the history builds out, e.g.

http://myteamcity/guestAuth/app/rest/builds/?locator=buildType:Project_Id,history:false