UpdateMergeRequestPersonnel

Updated at:

Updates the stakeholders of a merge request, including reviewers and subscribers.

Operation description

This operation requires the current organization to use the new version of merge requests. You can verify this by checking whether the merge request page of the current organization is updated to the new version.

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}/person/{personType} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

repositoryId

integer

Yes

The repository ID.

1233456

localId

integer

Yes

The local ID of the merge request, which indicates the sequence number of the merge request in the repository.

1

personType

string

Yes

The type of the stakeholder. Valid values:

  • REVIEWER: Reviewer.

  • SUBSCRIBER: Subscriber.

REVIEWER

Request parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The organization ID. This string 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) temporary credentials for authorization.

f0b1e61db5961df5975a93f9129d2513

body

object

No

The request body.

newUserIdList

array

No

The list of Alibaba Cloud account IDs of the stakeholders.

string

No

The Alibaba Cloud account ID.

249286812078239123

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

The request ID.

4D6AF7CC-B43B-5454-86AB-023D25E44868

errorMessage

string

The error message.

""

errorCode

string

The error code.

Openapi.RequestError

success

boolean

Indicates whether the call was successful.

true

result

object

The returned result.

result

boolean

Indicates whether the stakeholders were updated successfully.

true

Examples

Success response

JSON format

{
  "requestId": "4D6AF7CC-B43B-5454-86AB-023D25E44868",
  "errorMessage": "\"\"",
  "errorCode": "Openapi.RequestError",
  "success": true,
  "result": {
    "result": true
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.