Skip to content

Merge to default merge ref path

GET
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/merge_ref

Merges the changes between the merge request source and target branches into the refs/merge-requests/:iid/merge ref, of the target project repository, if possible. This ref has the state the target branch would have if a regular merge action was taken.

id
required
One of:
string

The ID or URL-encoded path of the project.

merge_request_iid
required
integer

The IID of a merge request

OK

Bad request

Not Found