Not able to migrate custom/generic rules
Hi,
I am not able to migrate custom/generic rules from rule repo to other env( different endpoints).
With the help of get API - [/v2/getrulerepo], I got all the generic rule. But when I am trying to use post API -
[/v2/insertcustomrule] with any of the rule json received from the GetApi, I am getting 400 error with message null.
Request JSON used :
{
“ruleName”: “NULL_VALUE_OR_5_DIGIT_CHECK_FOR_NUMERIC_TYPE_000”,
“ruleValue”: “$colNm is null or $colNm>1.00000 and $colNm not rlike ‘[.]\\d{5}$’”,
“isRegex”: 0,
“permission”: null,
“ruleType”: “SQLG”,
“ruleTyp”: “SQLG”,
“ruleExp”: null,
“ruleDescription”: “”,
“sensitiveLabelId”: null,
“ruleOperator”: null,
“ruleColumnName”: “”,
“ruleColumnType”: “”,
“ruleColumnPercentMatch”: 43,
“isEditable”: 1,
“isSemantic”: 0,
“semanticName”: “”,
“ruleRepoId”: null,
“example_1”: “”,
“example_2”: “”,
“example_3”: “”,
“allowNull”: 0,
“allowEmpty”: 0
}
Sunil Prabhakara
·3 years ago · EditedHi @shikha.trivedi.ulta.com , Please pass them as property rather than JSON request payload for insertcustomrule
for e.g : /v2/insertcustomrule?ruleRepoId=null&ruleName=&ruleValue= …