[Bitbucket Cloud] Project Branch-Restrictions Rest API (or as part of repository branch-restrictions)

I want to resolve ALL of the branch restrictions of the given repository, including those inherited by the repo’s project branch restrictions.

There is only one official/public API for resolving branch restrictions - repository branch restrictions.
And that API resolves only the personal repository branch restrictions - without the ones inherited from the project.

Is there are official (public) API to resolve project branch restrictions?
Either as part of repository branch restrictions or by a dedicated project request

3 Likes

I have the same request. If I can’t use project branch permissions in my automation then it’s useless to me.

Why is there no API for managing project-level branch restrictions?

Seems like a major oversight to me. I suppose most people only use project level branch restrictions; managing them on a repo level is tedious if you have many of them.