# Allow manual branch builds without enabling automatic branch builds?

**URL:** <https://forum.buildkite.community/t/allow-manual-branch-builds-without-enabling-automatic-branch-builds/2908>\
**Category:** Pipelines\
**Created:** [May 9, 2023, 7:32pm UTC](https://forum.buildkite.community/t/allow-manual-branch-builds-without-enabling-automatic-branch-builds/2908 "2023-05-09T19:32:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ian-persona](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/ian-persona/32/1234_2.png) [@ian-persona](https://forum.buildkite.community/u/ian-persona)\
**Post date:** [May 9, 2023, 7:32pm UTC](https://forum.buildkite.community/t/allow-manual-branch-builds-without-enabling-automatic-branch-builds/2908/1 "2023-05-09T19:32:48Z")

</div>

I’m using the REST API to allow engineers to trigger builds manually on branches that have been pushed up stream and I’ve run into what I think is a conundrum.

In one of my pipelines I have `Build branches` unchecked. This is because builds are big on this pipeline and building every branch push is cumbersome. That option’s description says, “Automatically run builds when branches are pushed to your repository.” – great! I do not want to _automatically_ run builds when branches are pushed.

BUT people attempting to use the REST API to start a manual build of this pipeline are encountering an error response from the API. They’re getting:

```auto
{"message"=>"Branches have been disabled for this pipeline"}

```

as the response.

Can I not disable _automatic_ branch builds but still trigger _manual_ branch builds for a pipeline? If so, what’s the missing option here to allow manual branch builds to work when automatic branch builds are disabled?

Thanks!

---

<div class="post-metadata">

**Author:** ![suma](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/suma/32/1306_2.png) [@suma](https://forum.buildkite.community/u/suma)\
**Post date:** [May 9, 2023, 9:07pm UTC](https://forum.buildkite.community/t/allow-manual-branch-builds-without-enabling-automatic-branch-builds/2908/2 "2023-05-09T21:07:44Z")

</div>

Hi @ian-persona

Thank you for reaching out us with your question. Yes, there is an option for this which is to set “ignore\_pipeline\_branch\_filters”: true in the request body of the REST API call for create builds which will run the build regardless of the pipeline’s branch filtering rules.

Please let us know if you have any questions. Thank you

---

<div class="post-metadata">

**Author:** ![ian-persona](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/ian-persona/32/1234_2.png) [@ian-persona](https://forum.buildkite.community/u/ian-persona)\
**Post date:** [May 9, 2023, 9:54pm UTC](https://forum.buildkite.community/t/allow-manual-branch-builds-without-enabling-automatic-branch-builds/2908/3 "2023-05-09T21:54:49Z")

</div>

Thank you @suma! That was exactly the piece I failed to connect to make this work.

---

<div class="post-metadata">

**Author:** ![paula](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/paula/32/954_2.png) [@paula](https://forum.buildkite.community/u/paula)\
**Post date:** [August 25, 2023, 6:18am UTC](https://forum.buildkite.community/t/allow-manual-branch-builds-without-enabling-automatic-branch-builds/2908/5 "2023-08-25T06:18:25Z")

</div>


