第三方自动触点调研规则接口

更新时间:2023-03-14 18:31:45

接口说明

第三方需要对接自动触点调研,需要使用此接口,上报第三方需要对接的业务场景规则

基本信息

请求方式: POST

请求路径:

https://prod.open-api.mysre.cn/old/survey-third-rule/add-rule

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
rule_data body string {"name":"移动验房","child":[{"name":"工地开放","business_code":"ydyf_gdkf"},{"name":"业主开放","business_code":"ydyf_yzkf"},{"name":"正式交付","child":[{"name":"房间交付状态","child":[{"name":"先收楼后处理","business_code":"ydkf_xslhcl"},{"name":"顺利收楼","business_code":"ydkf_slsl"},{"name":"先拒收后处理","business_code":"ydkf_xjshcl"}]}]}]} 要新增(更新)的规则json,末级节点business_code不能为空,非末级节点child不能为
sys_code body string ydyf 系统(场景)编码
o body string retesting 租户代码

请求示例

{
    "rule_data": "{\"name\":\"\u79fb\u52a8\u9a8c\u623f\",\"child\":[{\"name\":\"\u5de5\u5730\u5f00\u653e\",\"business_code\":\"ydyf_gdkf\"},{\"name\":\"\u4e1a\u4e3b\u5f00\u653e\",\"business_code\":\"ydyf_yzkf\"},{\"name\":\"\u6b63\u5f0f\u4ea4\u4ed8\",\"child\":[{\"name\":\"\u623f\u95f4\u4ea4\u4ed8\u72b6\u6001\",\"child\":[{\"name\":\"\u5148\u6536\u697c\u540e\u5904\u7406\",\"business_code\":\"ydkf_xslhcl\"},{\"name\":\"\u987a\u5229\u6536\u697c\",\"business_code\":\"ydkf_slsl\"},{\"name\":\"\u5148\u62d2\u6536\u540e\u5904\u7406\",\"business_code\":\"ydkf_xjshcl\"}]}]}]}",
    "sys_code": "ydyf",
    "o": "retesting"
}

返回成功示例

{
    "errcode": 0,
    "errmsg": "ok",
    "data": {
        "delete": [],
        "add": [
            "3a019c20-c601-cdb1-9f74-04fb80f56bee",
            "3a019c20-c601-8b38-91e6-9940bc293e36",
            "3a019c20-c601-9054-0207-37179a1cd53d",
            "3a019c20-c601-a79b-eb98-a53f4fc7c434",
            "3a019c20-c601-58a0-1dc7-81b9d1305a5f",
            "3a019c20-c601-0422-6f11-cad18e3a7e6f",
            "3a019c20-c601-7c09-776c-988f56e00348",
            "3a019c20-c601-194f-39a8-129a6e80b06f"
        ]
    }
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number 错误代码,正确返回情况为0
errmsg string 错误信息
data object 返回信息
data.delete array 删除的规则id
data.add array 新增的规则id

失败返回示例

{
    "errcode": 20001,
    "errmsg": "缺少租户代码"
}

返回参数说明(失败)

参数名 参数类型 描述
errcode number 非0则失败
errmsg string 失败原因

results matching ""

    No results matching ""