How to change the "Long-lived branches pattern"?


How can I change the long-lived branches pattern?

I see no way of doing this in the UI. I go to and the setting is displayed there, but I see no way to change it.


I tried doing it via the Web API, and while I can GET all my project’s settings (using a personal access token), when I try to POST the new value for the regex setting, I get 404: “Project doesn’t exist”, even though I use the same component argument and authorization in both requests.

What am I missing here?

  • ALM used: Bitbucket Cloud
  • CI system used: Azure DevOps

Hey there.

  • You need Administer rights on the project
  • The “Project doesn’t exist” error code is unfortunate, discussed here, and a private ticket created to have a clearer error message when a user is the member of an organization, but not an admin.

Thank you for your response!

It turns out I was confused by the permission model. I was an organization administrator, but that didn’t by default give me admin rights for all projects in the organization (which I naïvely assumed). I edited and reapplied the permission template and can now edit the pattern. :slight_smile:

1 Like