Copies the keys and translations of a branch into the branch it was made from, like ct merge.
HTTP
POST /projects/{projectId}/mergeAccess: 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 #
| Parameter | Description |
|---|---|
projectId | The id of the project. |
Request body #
JSON.
| Field | Type | Required | Description |
|---|---|---|---|
branch | string | yes | The name of the branch to merge. |
JSON
{ "branch": "feature/checkout" }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 project does not exist in your organisation, you have no access to it, or projectId is not a UUID. |
| 403 | forbidden | You are a member of the project, but not a manager. |
| 404 | not_found | The project has no branch with this name. |
| 409 | nothing_to_merge_into | The branch is the protected branch or has no base branch. |
| 422 | invalid_request | branch is empty. |
| 429 | rate_limited | Too many requests, see Rate limiting. |
See Errors for the error format.