创建代码评审
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ProjectId |
integer |
是 |
工作空间 ID |
23620 |
| PipelineRunId |
string |
是 |
单个发布流程 ID |
pipeline-id |
| Reviewers |
string |
是 |
指定评审人,多个账号使用英文逗号(,)分隔,至少一人,去重后拼接最长 512 字符 |
1234567890123456,2345678901234567 |
| Description |
string |
否 |
评审说明,最长 1024 字符 |
代码评审 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID |
request-id |
| Id |
string |
创建的评审唯一标识 |
review-id |
示例
正常返回示例
JSON格式
{
"RequestId": "request-id",
"Id": "review-id"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MissingParameter | The required parameter is not supplied. | |
| 400 | InvalidReviewer | The specified reviewer is invalid. | |
| 400 | InvalidPipelineRun.Unsupported | The specified pipeline run is not supported. | |
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 403 | Forbidden.AccessDenied | Request was denied due to access control. | |
| 403 | Forbidden.CommercialEdition | The current edition does not support this operation. | |
| 404 | InvalidSnapshot.NotFound | The specified snapshot does not exist. | |
| 404 | InvalidPipelineRun.NotFound | The specified pipeline run does not exist. | |
| 404 | InvalidObject.NotFound | The specified review object does not exist. | |
| 409 | InvalidPipelineRun.BuildNotReady | The pipeline build is not ready. | |
| 409 | InvalidPipelineRun.StatusConflict | The pipeline no longer allows a new review. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?