触点场景需要对接第三方的业务场景,在有相应业务类型的前提下,根据类型上报业务场景事件,该接口用于上报第三方触点场景事件。
请求方式: POST
请求路径:
https://prod.open-api.mysre.cn/scene-third/batch-add-scene-third-event
| 参数名 | 参数位置 | 参数类型 | 必填 | 默认值 | 示例 | 描述 |
|---|---|---|---|---|---|---|
| o | body | string | 是 | retesting | 对应云服务租户号 | |
| business_data | body | array | 是 | 业务json数据 | ||
| business_data.business_code | body | string | 是 | test | 第三方触点业务code | |
| business_data.business_name | body | string | 是 | 测试类型 | 第三方触点业务名称 | |
| business_data.proj_id | body | string | 是 | 123 | 项目id | |
| business_data.scope_type | body | string | 是 | project | 组织架构类型 | |
| business_data.scope_id | body | string | 是 | 123 | 组织架构id | |
| business_data.operate_time | body | string | 是 | 2021-11-15 22:00:48 | 操作时间 | |
| business_data.extend_info | body | object | 是 | 第三方扩展信息 | ||
| business_data.extend_info.remark | body | string | 是 | xxx | 第三方扩展信息如备注 |
{
"o": "retesting",
"business_data": [
{
"business_code": "test",
"business_name": "测试类型",
"proj_id": "123",
"scope_type": "project",
"scope_id": "123",
"operate_time": "2021-11-15 22:00:48",
"extend_info":{"remark":"xxx"}
}
]
}
{"errcode":0,"errmsg":"ok","data":true}
| 参数名 | 参数类型 | 描述 |
|---|---|---|
| errcode | number | 0:成功;非0:失败 |
| errmsg | string | 失败具体原因 |
| data | bool | 描述信息 |
{"errcode":"10015","errmsg":"o参数不能为空"}
| 参数名 | 参数类型 | 描述 |
|---|---|---|
| errcode | string | 非0:失败 |
| errmsg | string | 失败原因 |