POST
/v2/projects/{projectId}/branches/merge/{mergeId}/refreshRefresh a branch merge session preview
Refreshes the preview for a branch merge session. Use this after source or target branch data changes to recalculate the preview before reviewing or 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.
200Returns the refreshed merge preview summary, including branch identifiers and names, counts of key changes and conflicts, the `outdated` state, and the count of uncompleted source-branch tasks.
idintegerrequired
Branch merge id
keyAdditionsCountintegerrequired
Key additions count
keyDeletionsCountintegerrequired
Key deletions count
keyModificationsCountintegerrequired
Key updates count
keyResolvedConflictsCountintegerrequired
Key resolved conflicts count
keyUnresolvedConflictsCountintegerrequired
Key unresoled conflicts count
mergedAtintegeroptional
Date of merge. If null, merge was not applied yet
outdatedbooleanrequired
Is merge outdated. If true, it means, that either source or target branch data were changed
sourceBranchIdintegerrequired
Source branch id
sourceBranchNamestringrequired
Source branch name
targetBranchIdintegerrequired
Target branch id
targetBranchNamestringrequired
Target branch name
uncompletedTasksCountintegerrequired
Uncompleted tasks count on source branch
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 refresh the merge preview.
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.