Manual
CLI
API
Log in Get started free

Merge a branch by name

Copies the keys and translations of a branch into the branch it was made from, like `ct merge`.

Copies the keys and translations of a branch into the branch it was made from, like ct merge.

HTTP
POST /projects/{projectId}/merge

Access: Session token, or an API key with the keys:write scope.

Role: Project manager (organisation owners and admins are managers of every project).

Path parameters #

ParameterDescription
projectIdThe id of the project.

Request body #

JSON.

FieldTypeRequiredDescription
branchstringyesThe name of the branch to merge.
JSON
{ "branch": "feature/checkout" }

Response 204 #

The branch is merged. There is no body.

Errors #

StatuserrorWhen
401unauthenticatedThe token is missing or not valid.
404not_foundThe project does not exist in your organisation, you have no access to it, or projectId is not a UUID.
403forbiddenYou are a member of the project, but not a manager.
404not_foundThe project has no branch with this name.
409nothing_to_merge_intoThe branch is the protected branch or has no base branch.
422invalid_requestbranch is empty.
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.