API to Trigger a new Build by Project (preview) is broken

I’m trying to start a build from this endpoint (https://circleci.com/docs/api/v1-reference/#new-project-build)

If I try it passing a branch, it seems to work, but I need to pass a tag but then I get a 500 error.

curl -X POST --header "Content-Type: application/json" -d '{"tag":"staging"}' https://circleci.com/api/v1.1/project/:vcs-type/:username/:project/build?circle-token=:token

And I get:

{"message":"An internal server error occurred."}

Similar to: API to Trigger a new Build by Project (preview) fails

Can you give us the actual command that you are running (without the token).

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.