api-preview-docs icon indicating copy to clipboard operation
api-preview-docs copied to clipboard

Project build replaced?

Open bryanlalexander opened this issue 6 years ago • 1 comments
trafficstars

I noticed in the API Docs the project build API is being replaced. Is that an accurate statement?

POST /project/:vcs-type/:username/:project/build
Replaced by POST /project/:vcs-type/:username/:project/pipeline

If so, will the ability to trigger a build at a certain branch/commit or tag be introduced through a different feature? We're using this capability to implement sane environment/version management using the grace-circleci-builder. This API feature is exceptionally useful, save for the lack of being able to provide build parameters at execution-time (ie: secret injection).

bryanlalexander avatar Sep 05 '19 14:09 bryanlalexander

You should be able to accomplish the same tasks with the replacement endpoint. In our v2 Preview docs https://circleci.com/docs/api/v2/#trigger-a-new-pipeline we describe how the POST body will accept branch, tag, and parameters. Give it a shot!

jama22 avatar Oct 30 '19 19:10 jama22