v1

latestOpenAPI 3.0.32026-07-2415128381.3 KB
Branches

Merge a branch

Merges a branch in the project. Requires admin right.

Requires <code>write_projects</code> OAuth access scope.

post/projects/{project_id}/branches/{branch_id}/merge

Path parameters

project_idstring required

A unique project identifier

branch_idnumber required

A unique identifier of the branch.

Request body

force_conflict_resolve_using'source' | 'target'

Specify how to resolve conflicts. Possible values are <code>target</code> or <code>source</code>.

target_branch_idnumber

The branch to merge to. Defaults to master branch if not specified.

Response

OK

project_idstring
branch_mergedboolean