UpdatePushReviewOnOff
Enables or disables the push review setting for a specified repository. This operation requires administrator permissions.
Try it now
Test
RAM authorization
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 |
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 |
| result |
object |
The result of the operation. |
|
| result |
boolean |
Indicates whether the setting was updated successfully. A value of |
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.