CircleCI-Archived / api-preview-docs

In-progress docs about the pre-release preview of CircleCI API v2
72 stars 39 forks source link

Project build replaced? #54

Open bryanlalexander opened 4 years ago

bryanlalexander commented 4 years ago

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).

jama22 commented 4 years ago

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!