Copies the keys and translations of a branch into the branch it was made from.
HTTP
POST /branches/{branchId}/mergeAccess: Session token only. API keys get 403 with insufficient_scope.
Role: Project manager (organisation owners and admins are managers of every project).
Path parameters #
| Parameter | Description |
|---|---|
branchId | The id of the branch. |
Response 204 #
The branch is merged. There is no body.
Errors #
| Status | error | When |
|---|---|---|
| 401 | unauthenticated | The token is missing or not valid. |
| 404 | not_found | The branch does not exist, you have no access to its project, or branchId is not a UUID. |
| 403 | forbidden | You are a member of the project, but not a manager. |
| 409 | branch_protected | The branch is the protected main branch. |
| 409 | nothing_to_merge_into | The branch has no base branch. |
| 429 | rate_limited | Too many requests, see Rate limiting. |
See Errors for the error format.
Notes #
The CLI and CI use Merge by name, which accepts API keys.