批量上报第三方触点场景事件

更新时间:2021-11-22 11:23:26

接口说明

触点场景需要对接第三方的业务场景,在有相应业务类型的前提下,根据类型上报业务场景事件,该接口用于上报第三方触点场景事件。

基本信息

请求方式: 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 失败原因

results matching ""

    No results matching ""