Branches

Merge Branch

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

NOTE: By default, during merge: strings will be added from the source branch, deleted strings will be removed, changed strings will be updated. Conflicted strings will remain unchanged unless acceptSourceChanges is enabled.

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

Request

Path parameters

projectIdinteger required

Project Identifier. Get via List Projects

branchIdinteger required

Branch Identifier. Get via List Branches

Request body

deleteAfterMergeboolean

Whether to delete branch after merge

sourceBranchIdinteger required

Branch that will be merged

dryRunboolean

Simulate merging without making any real changes.

acceptSourceChangesboolean

When enabled, conflicted strings will be resolved by accepting changes from the source branch.

Example request

{
  "deleteAfterMerge": true,
  "sourceBranchId": 8,
  "dryRun": true,
  "acceptSourceChanges": true
}

Response

Branch merge was successfully started

Example response

{
  "data": {
    "identifier": "50fb3506-4127-4ba8-8296-f97dc7e3e0c3",
    "status": "finished",
    "progress": 100,
    "attributes": {
      "sourceBranchId": 38
    },
    "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.