Skip to content

Rebase a merge request

PUT
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/rebase

Rebases a merge request. Automatically rebases the source_branch of the merge request against its target_branch.

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

Media type application/json
object
skip_ci

Set to true to skip creating a CI pipeline.

boolean
nullable
Example generated
{
"skip_ci": true
}

Accepted

Bad Request

Forbidden

Not found

Conflict