ReopenMergeRequest

Updated at:

Reopens a closed merge request. Merge requests that have already been merged cannot be reopened.

Operation description

This API requires that your organization uses the new version of the merge request feature. You can verify this on your organization's merge request page.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /api/v4/projects/{repositoryId}/merge_requests/{localId}/reopen HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

repositoryId

integer

Yes

The repository ID.

2464454

localId

integer

Yes

The sequential ID of the merge request within the repository.

1

Request parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The ID of the organization. You can find it in your Alibaba Cloud DevOps URL, for example, https://devops.aliyun.com/organization/{organizationId}.

5ebbc0228123212b59xxxxx

accessToken

string

No

The personal access token. This parameter is not required when authenticating with an Alibaba Cloud AccessKey pair (AK and SK) or Security Token Service (STS).

f0b1e61db5961df5975a93f9129d2513

Response elements

Element

Type

Description

Example

object

Schema of the response.

requestId

string

The request ID.

313A1BF6-63B7-52D4-A098-952221A65254

errorMessage

string

The error message.

""

errorCode

string

The error code.

Openapi.RequestError

success

boolean

Indicates whether the request was successful.

true

result

object

The result of the operation.

result

boolean

Indicates whether the merge request was successfully reopened.

true

Examples

Success response

JSON format

{
  "requestId": "313A1BF6-63B7-52D4-A098-952221A65254",
  "errorMessage": "\"\"",
  "errorCode": "Openapi.RequestError",
  "success": true,
  "result": {
    "result": true
  }
}

Error codes

HTTP status code

Error code

Error message

Description

403 Forbidden.AccessDenied The user is not authorized to perform the operation. The user is not authorized to perform the operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.