Branches

Clone Branch

Required scopes: project.source.file (Read and Write).

post/projects/{projectId}/branches/{branchId}/clones

Request

Path parameters

projectIdinteger required

Project Identifier. Get via List Projects

branchIdinteger required

Source Branch Identifier. Get via List Branches.

Request body

namestring required

Branch name

Note: Can't contain \ / : * ? " < > | symbols

titlestring

Use to provide more details for translators. Title is available in UI only

isProtectedboolean

If true, the branch is protected from some actions (for example, delete or force-push operations may be restricted)

Example request

{
  "name": "develop-master",
  "title": "Master branch",
  "isProtected": true
}

Response

Branch cloning successfully launched

Example response

{
  "data": {
    "identifier": "50fb3506-4127-4ba8-8296-f97dc7e3e0c3",
    "status": "finished",
    "progress": 100,
    "createdAt": "2019-09-23T11:26:54+00:00",
    "updatedAt": "2019-09-23T11:26:54+00:00",
    "startedAt": "2019-09-23T11:26:54+00:00",
    "finishedAt": "2019-09-23T11:26:54+00:00"
  }
}

Changes

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