Branching model
Get the branching model for a project
Return the branching model set at the project level. This view is read-only. The branching model settings can be changed using the settings API.
The returned object:
- Always has a development property. development.name is the user-specified branch that can be inherited by an individual repository's branching model.
- Might have a production property. production will not be present when production is disabled. production.name is the user-specified branch that can be inherited by an individual repository's branching model.
- Always has a branch_types array which contains all enabled branch types.
get/workspaces/{workspace}/projects/{project_key}/branching-model
Request
- Base URLhttps://api.bitbucket.org/2.0
- URLhttps://api.bitbucket.org/2.0/workspaces/{workspace}/projects/{project_key}/branching-model
- Auth
- OAuth 2Authorization code: https://bitbucket.org/site/oauth2/authorizeToken URL: https://bitbucket.org/site/oauth2/access_token scopes: project:admin
- or HTTP basic
- or API key in header Authorization
Response
The branching model object
Changes
No recorded changes to this operation across all 15 revisions of this API.