UpdatePushReviewOnOff

Updated at:

Enables or disables the push review setting for a specified repository. This operation requires administrator permissions.

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 /repository/{repositoryId}/settings/trunk_mode HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

repositoryId

integer

Yes

The repository ID.

2813489

Request parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The organization ID. You can find this string in the URL for Alibaba Cloud DevOps. For example, in https://devops.aliyun.com/organization/{organizationId}, {organizationId} is the organization ID.

5ebbc0228123212b59xxxxx

trunkMode

boolean

Yes

Specifies whether to enable or disable push review. You need administrator permissions to change this setting.

  • true: On

  • false: Off

true

Response elements

Element

Type

Description

Example

object

The response schema.

requestId

string

The request ID.

6177543A-8D54-5736-A93B-E0195A1512CB

errorCode

string

The error code.

Openapi.RequestError

errorMessage

string

The error message.

""

success

boolean

Indicates whether the request was successful. A value of true indicates success, and a value of false indicates failure.

true

result

object

The result of the operation.

result

boolean

Indicates whether the setting was updated successfully. A value of true indicates success, and a value of false indicates failure.

true

Examples

Success response

JSON format

{
  "requestId": "6177543A-8D54-5736-A93B-E0195A1512CB",
  "errorCode": "Openapi.RequestError",
  "errorMessage": "\"\"",
  "success": true,
  "result": {
    "result": true
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.