UpdateRule - 修改策略

更新时间:
复制 MD 格式

更新策略。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
Langstring否

设置请求和接收消息的语言类型,默认值为 zh。取值:

  • zh:中文
  • en:英文
zh
ruleNamestring否

策略名称。

分析中心事件测试_策略01
ruleStatusstring否

策略状态。

RUNNING
memostring否

描述。

备注
eventCodestring否

事件编码。

de_agdxgz0246
ruleExpressionsstring否

策略表达式。

[{\"expressionName\":\"手机号MD5命中人脸测试名单\",\"itemId\":1,\"left\":{\"name\":\"mobileMd5\"},\"operatorCode\":\"deInNameList\",\"operatorName\":\"在名单中\",\"right\":{\"fieldValue\":\"nl_5tolf69W138c\"}}]
logicExpressionstring否

执行逻辑。

1&2
ruleActionsstring否

输出动作。

[{\"inputs\":[\"rn0301\"],\"name\":\"__addDeTags__\",\"actionType\":\"TAG\",\"outputType\":\"const\"}]
regIdstring否

区域编码。

cn-hangzhou
consoleRuleIdlong否

策略主键 ID。

6843
ruleIdstring否

策略 ID。

102224
ruleVersionIdlong否

策略版本号主键 ID。

11519
ruleBodystring否

DSL 策略表达式。

{ "elseIfStatement": [ { "condition": { "currentId": 0, "deepCount": 1, "list": [ { "currentId": 0, "deepCount": 1, "left": { "code": "getLbsRegion(longitude, latitude)?.prov", "description": "根据经纬度得到省份信息,比如经度:111.878062,纬度:22.585409,则经过运算,输出”广东省“", "displayType": "SELF_BIND", "fieldType": "STRING", "functionCode": "", "functionName": "", "hasRightVariable": true, "name": "sl_S02sHLFT7818", "outputThreshold": { }, "sourceType": "SAF", "title": "经纬度自定义系统变量", "type": "SELF_BIND" }, "operatorCode": "equals", "operatorName": "等于", "parentId": 0, "right": { "name": "v", "rightVariableType": "constant" }, "sequence": 2 }, { "currentId": 0, "deepCount": 1, "list": [ { "currentId": 0, "deepCount": 1, "left": { "code": "deReadVelocity(userId,"hK1DMAp1d97",1,"H",0,true,"COUNT")", "description": "测试系统变量累计", "displayType": "SELF_BIND", "fieldType": "DOUBLE", "functionCode": "", "functionName": "", "hasRightVariable": true, "name": "hK1DMAp1d97", "outputThreshold": { }, "sourceType": "SAF_SELF", "title": "测试系统变量累计", "type": "SELF_BIND" }, "operatorCode": "equals", "operatorName": "等于", "parentId": 0, "right": { "name": "a", "rightVariableType": "constant" }, "sequence": 3 } ], "parentId": 0, "relationship": "and" } ], "parentId": 0, "relationship": "and" }, "then": [ { "inputs": [ "123" ], "name": "__addDeScore__", "actionType": "SCORE", "outputType": "const", "inputTitle": "123" } ] } ], "elseStatement": { }, "ifStatement": { "condition": { "currentId": 0, "deepCount": 1, "list": [ { "currentId": 0, "deepCount": 1, "left": { "code": "deFunctionProcess(ip,"isIp")", "description": "判断是否符合IPv4标准", "displayType": "SYSTEM_BIND", "fieldType": "BOOLEAN", "functionCode": "", "functionName": "", "hasRightVariable": true, "name": "__isIpAddressV4__", "outputThreshold": { }, "sourceType": "SAF", "title": "IP是否符合IPV4格式", "type": "SYSTEM_BIND" }, "operatorCode": "equals", "operatorName": "等于", "parentId": 0, "right": { "name": "c d s", "rightVariableType": "constant" }, "sequence": 1 } ], "parentId": 0, "relationship": "and" }, "then": [ { "inputs": [ "22" ], "name": "__addDeTags__", "actionType": "TAG", "outputType": "const" } ] } }
ruleTypestring否

策略类型。

DEFAULT

返回参数

名称类型描述示例值
object
resultObjectboolean

返回对象。

true
requestIdstring

请求 ID。

AE7E6105-7DEB-5125-9B24-DCBC139F6CD2

示例

正常返回示例

JSON格式

{
  "resultObject": true,
  "requestId": "AE7E6105-7DEB-5125-9B24-DCBC139F6CD2"
}

错误码

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史