Branching model

Get the branching model config for a project

Return the branching model configuration for a project. The returned object:

  1. Always has a development property for the development branch.
  2. Always a production property for the production branch. The production branch can be disabled.
  3. The branch_types contains all the branch types.
  4. default_branch_deletion indicates whether branches will be deleted by default on merge.

This is the raw configuration for the branching model. A client wishing to see the branching model with its actual current branches may find the active model API more useful.

get/workspaces/{workspace}/projects/{project_key}/branching-model/settings

Request

  • Base URL
    https://api.bitbucket.org/2.0
  • URL
    https://api.bitbucket.org/2.0/workspaces/{workspace}/projects/{project_key}/branching-model/settings
  • 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 configuration

typestring required

Changes

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