Payload for POST /rest/sync/latest/projects/{key}/repos/{slug}/synchronize (manually synchronizes a diverged or orphaned ref).
POST /rest/sync/latest/projects/{key}/repos/{slug}/synchronize
'MERGE'
context.commitMessage
'REBASE'
'DISCARD'
Optional
The ref to synchronize (e.g. 'refs/heads/main')
'refs/heads/main'
Payload for
POST /rest/sync/latest/projects/{key}/repos/{slug}/synchronize(manually synchronizes a diverged or orphaned ref).'MERGE'— merge upstream into the ref (optionally withcontext.commitMessage)'REBASE'— rebase the ref onto upstream'DISCARD'— discard local changes, resetting the ref to upstream