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

Request

  • Base URL
    https://api.lokalise.com/api2
  • URL
    https://api.lokalise.com/api2/projects/{project_id}/branches/{branch_id}/merge
  • Auth
    API key in header X-Api-Token

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

Changes

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