v24

latestOpenAPI 3.1.0raw.githubusercontent.com2026-03-02251756.0 KB

Create a new project branch

Create a new branch for a project.

The branch inherits the config files from the revision pointed to by the branch_from parameter. In addition, if the revision is a branch name, the branch will also inherit custom code changes from that branch.

post/v0/projects/{project}/branches

Path parameters

projectstring required

Request body

branchstring required

Branch name

branch_fromstring required

Branch or commit SHA to branch from

forceboolean

Whether to throw an error if the branch already exists. Defaults to false.

Response

success

object'project_branch' required
branchstring required

Branch name

orgstring required
projectstring required

Project name