v4

latestOpenAPI 3.0.1Apache 2.02026-07-312457525.9 MB
Project API

Creates a new branch in the repository

post/workspaces/{workspace_domain}/projects/{project_name}/repository/branches

Path parameters

workspace_domainstring required
Example:my-company

The human-readable ID of the workspace

project_namestring required
Example:my-project

The human-readable ID of the project

Request body

namestring required

The name of the branch

descriptionstring

The description of the branch

Example request

{
  "commit": {
    "revision": "506a3963507943d6908154f4bc9646e829128a08"
  }
}

Response

urlstring

API endpoint to GET this object

html_urlstring

Web URL to view this object in Buddy.works

namestring

The name of the branch

descriptionstring

The description of the branch

defaultboolean

Indicates whether this branch is default branch in the repository