You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

63 lines
1.9 KiB

meta {
name: 保存查重规则草稿
type: http
seq: 3
tags: [
generated
]
}
post {
url: {{baseUrl}}/api/rule/opp-dedup-rule/save-draft
body: formUrlEncoded
auth: inherit
}
body:form-urlencoded {
ruleName: 全商机默认查重
applyScopeType: 1
isDefault: 1
ruleDesc: 全部商机默认查重规则
wizardConfig: {"triggerScenarios":["OPP_TO_PROJECT"],"projectStatuses":["进行中"],"searchConditions":[{"field":"项目名称","source":"商机","matchMode":"SIMILAR","threshold":80}],"analysisRules":[],"strategies":{"intercept":["明确重复"],"confirm":["疑似重复"],"normal":["无明显冲突"]}}
}
docs {
# 保存查重规则草稿
`POST /api/rule/opp-dedup-rule/save-draft`
保存草稿(新建/原位编辑草稿/从发布中停用生成新草稿;向导配置整体保存)。
## 请求参数
| 参数 | 类型 | 必填 | 默认 | 说明 |
| --- | --- | --- | --- | --- |
| id | string | 否 | - | 版本行 ID(编辑草稿/生成新草稿时传;新建不传) |
| ruleName | string | 是 | - | 规则名称 |
| applyScopeType | int | 是 | - | 适用范围:1全部商机 2按项目属地 3按所属公司 |
| applyScopeValue | string | 否 | - | 适用对象(applyScopeType=2 时必填) |
| isDefault | int | 否 | 0 | 是否默认:1是 0否(仅全部商机档可设) |
| ruleDesc | string | 否 | - | 规则说明 |
| wizardConfig | string(json) | 否 | - | 4 步骤向导配置整体 JSON(结构见详情接口) |
## 请求示例
请求头:Authorization: Bearer {{token}}
Content-Type: application/x-www-form-urlencoded
POST /api/rule/opp-dedup-rule/save-draft
ruleName=全商机默认查重&applyScopeType=1&isDefault=1&ruleDesc=全部商机默认查重规则&wizardConfig=%7B...%7D
## 响应 data 结构
null
## 响应示例
```json
{
"code": 0,
"success": true,
"message": "success",
"data": null
}
```
}