触点场景需要对接第三方的业务场景,并且根据不同的业务场景类型生成场景数据,该接口用于提供自定义场景类型。
请求方式: POST
请求路径:
https://prod.open-api.mysre.cn/scene-third/batch-add-scene-third-type
| 参数名 | 参数位置 | 参数类型 | 必填 | 默认值 | 示例 | 描述 |
|---|---|---|---|---|---|---|
| o | body | string | 是 | retesting | 对应云服务租户号 | |
| business_data | body | array | 是 | 业务json数据 | ||
| business_data.system_name | body | string | 是 | 测试系统 | 第三方系统名称 | |
| business_data.business_code | body | string | 是 | test | 第三方触点业务code | |
| business_data.business_name | body | string | 是 | 测试类型 | 第三方触点业务名称 | |
| business_data.rule_name | body | string | 是 | 完成后 | 规则名称 | |
| business_data.scope_type | body | string | 是 | project | 组织架构类型 | |
| business_data.sort | body | string | 是 | 1 | 排序号 |
{
"o": "retesting",
"business_data": [
{
"system_name": "测试系统",
"business_code": "test",
"business_name": "测试类型",
"rule_name": "完成后",
"scope_type": "project",
"sort": "1"
}
]
}
{"errcode":0,"errmsg":"ok","data":true}
| 参数名 | 参数类型 | 描述 |
|---|---|---|
| errcode | number | 0:成功;非0:失败 |
| errmsg | string | 失败具体原因 |
| data | bool | 描述信息 |
{"errcode":"10015","errmsg":"o参数不能为空"}
| 参数名 | 参数类型 | 描述 |
|---|---|---|
| errcode | string | 非0:失败 |
| errmsg | string | 失败原因 |