Branch restrictions
List branch restrictions
Returns a paginated list of all branch restrictions on the repository.
get/repositories/{workspace}/{repo_slug}/branch-restrictions
Request
- Base URLhttps://api.bitbucket.org/2.0
- Auth
- OAuth 2Authorization code: https://bitbucket.org/site/oauth2/authorizeToken URL: https://bitbucket.org/site/oauth2/access_token scopes: repository:admin
- or HTTP basic
- or API key in header Authorization
Query parameters
kindstring
Branch restrictions of this type
patternstring
Branch restrictions applied to branches of this pattern
Response
A paginated list of branch restrictions
Changes
No recorded changes to this operation across all 23 revisions of this API.