> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Merge Request

Updates an existing merge request. You can change the target branch, title, or even close the MR.

<Note>
  External Documentation

  To learn more, visit the [GitLab documentation](https://docs.gitlab.com/ee/api/merge_requests.html#update-mr).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter                 | Description                                                                                                                                          |
  | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Assignee IDs              | The ID of the user(s) to assign the MR to. Set to 0 or provide an empty value to unassign all assignees.                                             |
  | Description               | Description of MR. Limited to 1,048,576 characters.                                                                                                  |
  | Merge Request Internal ID | The ID of a merge request.                                                                                                                           |
  | Project ID                | The ID or path of the project owned by the authenticated user. If the path is being used, it should be url encoded - for example: user%2my-project . |
  | Remove Source Branch      | Flag indicating if a merge request should remove the source branch when merging.                                                                     |
  | Squash                    | Squash commits into a single commit when merging.                                                                                                    |
  | State Event               | New state (close/reopen).                                                                                                                            |
  | Target Branch             | The target branch.                                                                                                                                   |
  | Title                     | Title of MR.                                                                                                                                         |
</div>

## Workflow Library Example

[Update Merge Request with Gitlab and Send Results Via Email](https://library.blinkops.com/workflows/update-merge-request-with-gitlab-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/update-merge-request-with-gitlab-and-send-results-via-email/canvas" />
</div>
