UpdateCodeReview
Approves or rejects a code review.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:UpdateCodeReview |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The workspace ID. |
23620 |
| Id |
string |
Yes |
The unique identifier of the review. |
review-id |
| Status |
string |
Yes |
The final decision. Valid values: Accepted and Rejected. Valid values:
|
Accepted |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
request-id |
| Success |
boolean |
Indicates whether the approval is successful. This does not mean that the release process is complete. |
Examples
Success response
JSON format
{
"RequestId": "request-id",
"Success": false
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The required parameter is not supplied. | |
| 400 | InvalidCodeReview.Unsupported | The specified code review type is not supported. | |
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 403 | Forbidden.CodeReviewer | The caller is not an assigned reviewer. | |
| 403 | Forbidden.AccessDenied | Request was denied due to access control. | |
| 403 | Forbidden.CommercialEdition | The current edition does not support this operation. | |
| 404 | InvalidCodeReview.NotFound | The specified code review does not exist. | |
| 409 | InvalidCodeReview.StatusConflict | The current review status does not support this action. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.