UpdateMergeRequest
Updates the title and description of a merge request.
Operation description
This operation requires the organization to use the new version of merge requests. You can verify this by checking whether the merge request page of the organization displays the new version.
Try it now
Test
RAM authorization
Request syntax
PUT /api/v4/projects/{repositoryId}/merge_requests/{localId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| repositoryId |
integer |
Yes |
The repository ID. |
889910 |
| localId |
integer |
Yes |
The local ID of the merge request, which indicates the sequence number of the merge request in the repository. |
1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The organization ID. It is a string that can be obtained from the Yunxiao URL, such as https://devops.aliyun.com/organization/[OrganizationId]. |
5ebbc0228123212b59xxxxx |
| accessToken |
string |
No |
The personal access token. This parameter is not required if you use an Alibaba Cloud AccessKey pair or Security Token Service (STS) for temporary authorization. |
f0b1e61db5961df5975a93f9129d2513 |
| body |
object |
No |
The request body. |
|
| title |
string |
No |
The title of the merge request. |
test-update title |
| description |
string |
No |
The description of the merge request. |
test-description |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
F7B85D1B-D1C2-140F-A039-341859F130B9 |
| errorMessage |
string |
The error message. |
"" |
| errorCode |
string |
The error code. |
SYSTEM_UNKNOWN_ERROR |
| success |
boolean |
Indicates whether the call was successful. |
true |
| result |
object |
The returned result. |
|
| result |
boolean |
Indicates whether the update was successful. |
true |
Examples
Success response
JSON format
{
"requestId": "F7B85D1B-D1C2-140F-A039-341859F130B9",
"errorMessage": "\"\"",
"errorCode": "SYSTEM_UNKNOWN_ERROR",
"success": true,
"result": {
"result": true
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.