# Request build error: "Branches have been disabled for this pipeline"

**URL:** <https://forum.buildkite.community/t/request-build-error-branches-have-been-disabled-for-this-pipeline/1463>\
**Category:** General\
**Created:** [February 16, 2021, 4:56am UTC](https://forum.buildkite.community/t/request-build-error-branches-have-been-disabled-for-this-pipeline/1463 "2021-02-16T04:56:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonbyrne](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/simonbyrne/32/847_2.png) [@simonbyrne](https://forum.buildkite.community/u/simonbyrne)\
**Post date:** [February 16, 2021, 4:56am UTC](https://forum.buildkite.community/t/request-build-error-branches-have-been-disabled-for-this-pipeline/1463/1 "2021-02-16T04:56:09Z")

</div>

I’m trying to use the REST API, to trigger a build, but am getting the following error:

```auto
> curl -H "Authorization: Bearer $TOKEN" "https://api.buildkite.com/v2/organizations/clima/pipelines/actiontest/builds" -X "POST" -F "commit=HEAD" -F "branch=master" -F "message=First build :rocket:"

{
  "message": "Branches have been disabled for this pipeline"
}

```

I’ve literally copied the example curl script, and don’t have any branch filters on. How can I get this to work?

---

<div class="post-metadata">

**Author:** ![jess](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/jess/32/24_2.png) [@jess](https://forum.buildkite.community/u/jess)\
**Post date:** [February 16, 2021, 7:43pm UTC](https://forum.buildkite.community/t/request-build-error-branches-have-been-disabled-for-this-pipeline/1463/2 "2021-02-16T19:43:10Z")

</div>

Hi @simonbyrne,

It looks like you’ve [turned off all the build triggers](https://buildkite.com/clima/actiontest/settings/repository), which currently for backwards-compatibility disqualifies the build from running via the API unless you turn on the `ignore_pipeline_branch_filters` option when calling the API.

This should do the trick:

```bash
curl -H "Authorization: Bearer $TOKEN" "https://api.buildkite.com/v2/organizations/clima/pipelines/actiontest/builds" -X "POST" -F "commit=HEAD" -F "branch=master" -F "message=First build :rocket:" -F "ignore_pipeline_branch_filters=true"

```

It’s definitely a quirk we ought to address in the future, but I hope that helps!

---

<div class="post-metadata">

**Author:** ![yatsushi](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/yatsushi/32/1007_2.png) [@yatsushi](https://forum.buildkite.community/u/yatsushi)\
**Post date:** [November 4, 2021, 11:08pm UTC](https://forum.buildkite.community/t/request-build-error-branches-have-been-disabled-for-this-pipeline/1463/3 "2021-11-04T23:08:21Z")

</div>

Hi! I also ran into this issue. I was curious if there are any updates on whether API will be enabled for pipelines without triggers any time soon?

---

<div class="post-metadata">

**Author:** ![karen.sawrey](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/karen.sawrey/32/1188_2.png) [@karen.sawrey](https://forum.buildkite.community/u/karen.sawrey)\
**Post date:** [February 2, 2023, 12:29pm UTC](https://forum.buildkite.community/t/request-build-error-branches-have-been-disabled-for-this-pipeline/1463/5 "2023-02-02T12:29:53Z")

</div>

Hello, @dossett! Welcome to the community! Can you please send the link to your build in question to the support email address?

Best!

---

<div class="post-metadata">

**Author:** ![dossett](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dossett](https://forum.buildkite.community/u/dossett)\
**Post date:** [February 2, 2023, 4:24pm UTC](https://forum.buildkite.community/t/request-build-error-branches-have-been-disabled-for-this-pipeline/1463/6 "2023-02-02T16:24:19Z")

</div>

Thank you @karen.sawrey. This turned out to be an unrelated problem, so I deleted my post.
