@@ -613,19 +615,20 @@ Updates an existing merge request. You can change the target branch, title, or e
...
@@ -613,19 +615,20 @@ Updates an existing merge request. You can change the target branch, title, or e
PUT /projects/:id/merge_requests/:merge_request_iid
PUT /projects/:id/merge_requests/:merge_request_iid
```
```
| Attribute | Type | Required | Description |
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| --------- | ---- | -------- | ----------- |
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user |
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user |
| `merge_request_iid` | integer | yes | The ID of a merge request |
| `merge_request_iid` | integer | yes | The ID of a merge request |
| `target_branch` | string | no | The target branch |
| `target_branch` | string | no | The target branch |
| `title` | string | no | Title of MR |
| `title` | string | no | Title of MR |
| `assignee_id` | integer | no | The ID of the user to assign the merge request to. Set to `0` or provide an empty value to unassign all assignees. |
| `assignee_id` | integer | no | The ID of the user to assign the merge request to. Set to `0` or provide an empty value to unassign all assignees. |
| `milestone_id` | integer | no | The ID of a milestone to assign the merge request to. Set to `0` or provide an empty value to unassign a milestone.|
| `milestone_id` | integer | no | The ID of a milestone to assign the merge request to. Set to `0` or provide an empty value to unassign a milestone.|
| `labels` | string | no | Comma-separated label names for a merge request. Set to an empty string to unassign all labels. |
| `labels` | string | no | Comma-separated label names for a merge request. Set to an empty string to unassign all labels. |
| `description` | string | no | Description of MR |
| `description` | string | no | Description of MR |
| `state_event` | string | no | New state (close/reopen) |
| `state_event` | string | no | New state (close/reopen) |
| `remove_source_branch` | boolean | no | Flag indicating if a merge request should remove the source branch when merging |
| `remove_source_branch` | boolean | no | Flag indicating if a merge request should remove the source branch when merging |
| `discussion_locked` | boolean | no | Flag indicating if the merge request's discussion is locked. If the discussion is locked only project members can add, edit or resolve comments. |
| `discussion_locked` | boolean | no | Flag indicating if the merge request's discussion is locked. If the discussion is locked only project members can add, edit or resolve comments. |
| `allow_maintainer_to_push` | boolean | no | Wether or not a maintainer of the target project can push to the source branch |
Must include at least one non-required attribute from above.
Must include at least one non-required attribute from above.
...
@@ -634,7 +637,7 @@ Must include at least one non-required attribute from above.
...
@@ -634,7 +637,7 @@ Must include at least one non-required attribute from above.
"id":1,
"id":1,
"iid":1,
"iid":1,
"target_branch":"master",
"target_branch":"master",
"project_id":3,
"project_id":4,
"title":"test1",
"title":"test1",
"state":"opened",
"state":"opened",
"upvotes":0,
"upvotes":0,
...
@@ -655,7 +658,7 @@ Must include at least one non-required attribute from above.
...
@@ -655,7 +658,7 @@ Must include at least one non-required attribute from above.
"state":"active",
"state":"active",
"created_at":"2012-04-29T08:46:00Z"
"created_at":"2012-04-29T08:46:00Z"
},
},
"source_project_id":4,
"source_project_id":3,
"target_project_id":4,
"target_project_id":4,
"labels":[],
"labels":[],
"description":"description1",
"description":"description1",
...
@@ -682,6 +685,7 @@ Must include at least one non-required attribute from above.
...
@@ -682,6 +685,7 @@ Must include at least one non-required attribute from above.