v1

latestOpenAPI 3.0.32026-07-22115106141.4 KB
Repository Branch Manipulation

Create a branch

post/repos/{repo_id}/branches

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"
}