Request
{
"name": "rule", //required
"methodId": 0, //optional
"resultApiField": "result.abc", //optional
"fieldName": "{{field.1234}}", //optional
"operator": "!=", //optional
"answerId": 0, //optional
"answer": "first status", //optional
"isRequired": false //optional
}
Response
{
"status": 1,
"message": "",
"response": {
"id": 12,
"name": "rule2",
"methodId": 0,
"resultApiField": "result.abc",
"fieldName": "{{field.1234}}",
"operator": "!=",
"answerId": 0,
"answer": "first status",
"isRequired": true
}
}
Request
{
"id": 12 //required
"name": "rule2", //optional
"methodId": 0, //optional
"resultApiField": "result.abc", //optional
"fieldName": "{{field.1234}}", //optional
"operator": "!=", //optional
"answerId": 0, //optional
"answer": "first status", //optional
"isRequired": true //optional
}
Response
{
"status": 1,
"message": "",
"response": {
"id": 12,
"name": "rule2",
"methodId": 0,
"resultApiField": "result.abc",
"fieldName": "{{field.1234}}",
"operator": "!=",
"answerId": 0,
"answer": "first status",
"isRequired": true
}
}
q
- регистронезависимая подстрока ruleName
Response
{
"status": 1,
"message": "",
"response": {
"rules": [
{
"id": 12
"name": "rule2",
"methodId": 0,
"resultApiField": "result.abc",
"fieldName": "{{field.1234}}",
"operator": "!=",
"answerId": 0,
"answer": "first status",
"isRequired": true
},
{
"id": 13
"name": "rule3",
"methodId": 0,
"resultApiField": "result.abc",
"fieldName": "{{field.1234}}",
"operator": "!=",
"answerId": 0,
"answer": "second status",
"isRequired": true
}
],
offset: 0,
total: 2
}
}
Request
Response
{
"status": 1,
"message": "",
"response": {
"rule": {
"id": 12,
"name": "rule2",
"methodId": 0,
"resultApiField": "result.abc",
"fieldName": "{{field.1234}}",
"operator": "!=",
"answerId": 0,
"answer": "first status",
"isRequired": true
}
}
}
Request
Response
{
"status": 1,
"message": "",
"response": {}
}