Repository Branch Manipulation

POST /repos/{repo_id}/branches

Create a branch

Request

Request body

commit_idstring required
branch_namestring required
branch_descriptionstring

Example request

{
  "commit_id": "example_id",
  "branch_name": "new-branch-name",
  "branch_description": "A description of the branch"
}

Response

Resource created

idstring required

The id of the newly created resource

Example response

{
  "id": "example_id"
}

Changes

No recorded changes to this operation across all 1 revision of this API.