POST
/v2/projects/{projectId}/branches/merge/{mergeId}/applyApply a branch merge
Applies a branch merge session, merging its source branch into its target branch. You can provide deleteBranch to specify whether to delete the source branch after applying the merge.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
mergeIdintegerrequired
The merge session identifier as a 64-bit integer.
projectIdintegerrequired
The project identifier as a 64-bit integer.
Optional settings for applying the branch merge.
deleteBranchbooleanrequired
Whether to delete the source branch after applying the merge.
200Returns confirmation that the branch merge was applied.
400Returned when the request is invalid.
codestringrequired
paramsarray<object>optional
401Returned when authentication is missing or invalid.
codestringrequired
paramsarray<object>optional
403Returned when you do not have permission to apply the merge.
codestringrequired
paramsarray<object>optional
404Returned when the project or merge session cannot be found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when the request is invalid. A 401 is returned when authentication is missing or invalid, a 403 when you lack permission, and a 404 when the project or merge session cannot be found. The mergeId and projectId path parameters must identify the session and its project. If you send a request body, it must include deleteBranch.