Merge Branch
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Request
Response
Task state at enqueue time (typically queued).
Bearer authentication of the form Bearer <token>, where token is your auth token.
Task state at enqueue time (typically queued).
Enqueue an async task to merge a branch into main.
When unresolved conflicts exist and no resolutions are supplied, the API returns 409 with code branch_merge_conflict and the conflict list in details. When resolutions are supplied but incomplete, the API returns 400 invalid_resolution listing the uncovered conflicts. Retry with a full resolutions array to resolve and merge in one step.
On success the branch is consumed and removed from GET .../branches.
Required scope | branches:merge
Optional on the first attempt. When conflicts exist and this array is omitted or empty, the API returns 409 branch_merge_conflict with the conflict list in details. When resolutions are supplied but do not cover every conflict (type, id), the API returns 400 invalid_resolution listing the uncovered conflicts in details. Retry with a full resolutions array to resolve and merge in one step.