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:

  1. Always has a development property. development.name is the user-specified branch that can be inherited by an individual repository's branching model.
  2. 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.
  3. Always has a branch_types array which contains all enabled branch types.
get/workspaces/{workspace}/projects/{project_key}/branching-model

Request

  • Base URL
    https://api.bitbucket.org/2.0
  • URL
    https://api.bitbucket.org/2.0/workspaces/{workspace}/projects/{project_key}/branching-model
  • Auth
    • OAuth 2
      Authorization code: https://bitbucket.org/site/oauth2/authorize
      Token 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

typestring required

Changes

No recorded changes to this operation across all 15 revisions of this API.