v1

latestOpenAPI 3.0.22026-07-174950145.6 KB
Manage Branches

Execute an operation on a Branch

Execute an operation on the specified branch. Supported operation types are:

  • Merge
post/spaces/{spaceId}/branches/{branchId}

Path parameters

spaceIdstring required

The unique identifier of the space.

branchIdstring required

The unique identifier of the branch.

Request body

typestring required

The type is: Merge

targetBranchIdstring

The ID of the branch into which to merge this branch.

Response

A branch response.

idstring

The branch ID. It must be unique per space.

baseRefstring

The reference onto which the branch has been created. A reference describes a target branch and a version within that target branch. References have the following syntax:

[<branchName (optional, default: main)>:][<version (optional, default: HEAD)>]

The "main"-branch is the space itself as it has been created in the first place. Defining the branch as part of the reference only becomes necessary if further branches have been created for the space, which should be addressed by the ref.

Samples:

  • main:42 points to version 42 of the "main"-branch
  • myBranch:37 Points to version 37 of the branch with ID "myBranch"
  • 42 points to version 42 of the "main"-branch
  • myBranch:HEAD points to the latest version of the branch with ID "myBranch"
  • HEAD points to the latest version of the "main"-branch
  • myBranch points to the latest version of the branch with ID "myBranch"