meta { name: 发布推送规则 type: http seq: 4 tags: [ generated ] } post { url: {{baseUrl}}/api/rule/opp-push-rule/publish body: formUrlEncoded auth: inherit } body:form-urlencoded { id: 8001 ruleName: 投标阶段方案推送 applyScope: 1 isDefault: 1 pushConfig: {"basic":{"pushNodeName":"方案卡确认","schemeTemplateId":"747831302652166144"},"fieldValidations":[],"fieldMappings":[],"projectCreation":{"createMode":"auto","dedupRuleId":"8101","nameRule":"{客户名称}-{方案名称}"}} } docs { # 发布推送规则 `POST /api/rule/opp-push-rule/publish` 保存并发布(推送配置完整+方案卡模板引用有效+同名称发布中唯一;原发布中转停用)。 ## 请求参数 | 参数 | 类型 | 必填 | 默认 | 说明 | | --- | --- | --- | --- | --- | | id | string | 否 | - | 版本行 ID(编辑已有草稿发布时传) | | ruleName | string | 是 | - | 规则名称 | | applyScope | int | 是 | - | 适用范围:1全部商机 2条件式 | | conditionType | string | 否 | - | 条件类型(applyScope=2 时必填) | | conditionValue | string | 否 | - | 条件值(applyScope=2 时必填) | | isDefault | int | 否 | 0 | 是否默认:1是 0否(同适用范围中设默认) | | ruleDesc | string | 否 | - | 规则说明 | | pushConfig | string(json) | 是 | - | 推送配置 4 步骤整体 JSON(发布校验步骤①必配+引用有效) | ## 请求示例 请求头:Authorization: Bearer {{token}} Content-Type: application/x-www-form-urlencoded POST /api/rule/opp-push-rule/publish id=8001&ruleName=投标阶段方案推送&applyScope=1&isDefault=1&pushConfig=%7B...%7D ## 响应 data 结构 null ## 响应示例 ```json { "code": 0, "success": true, "message": "success", "data": null } ``` }