REST API, Get project history, fails to return specified startBuildId

Dale Phurrough's Avatar

Dale Phurrough

17 Jul, 2019 12:33 PM

GET /api/projects/{accountName}/{projectSlug}/history?recordsNumber={records-per-page}[&startBuildId={buildId}&branch={branch}]
as doc'd at
fails to return a specified startBuildId.
Instead, the API returns the build previous in history the given startBuildId


  1. Create a history of builds
  2. Determine the unique buildId of one of those builds
  3. Query the above REST API defining recordsNumber=1, startBuildId=<your buildId of step 2>, branch=<branch of the build you chose>


You will get one build returned, the build before the buildId you specified.


The single build with the buildId you specified


None viable known. There is no other API which takes buildId as a parameter to return a build. It may be possible to query for all builds in the entire history of the project and then filter it with a tool like jq. However, this doesn't scale.

  1. 1 Posted by Owen McDonnell on 18 Jul, 2019 04:46 PM

    Owen McDonnell's Avatar

    We are looking into this. It should be a pretty simple fix.
    There is an undocumented api call that you can use as a workaround to get at single build by ID for now. It's fairly straightforward.}/{projectSlug}/builds/{buildId}
  2. Ilya Finkelshteyn closed this discussion on 17 Sep, 2019 09:01 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

13 Dec, 2019 05:26 PM
13 Dec, 2019 11:28 AM
12 Dec, 2019 09:36 PM
12 Dec, 2019 09:25 PM
12 Dec, 2019 06:01 PM


11 Dec, 2019 11:29 PM
11 Dec, 2019 08:47 PM
11 Dec, 2019 01:39 PM
10 Dec, 2019 12:29 AM
09 Dec, 2019 05:35 AM
07 Dec, 2019 04:20 PM