通过或拒绝代码评审
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ProjectId |
integer |
是 |
工作空间 ID |
23620 |
| Id |
string |
是 |
评审唯一标识 |
review-id |
| Status |
string |
是 |
最终决定,只支持 Accepted 或 Rejected 枚举值:
|
Accepted |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID |
request-id |
| Success |
boolean |
审批是否成功,不代表发布流程完成 |
示例
正常返回示例
JSON格式
{
"RequestId": "request-id",
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 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. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?