Update Business Rule
Last updated
Last updated
This is a PATCH call as opposed to a POST call.
In the body of the message, the ‘entity.ID’ is now a required field. We will update the complex rule created above. The ‘has_online’ determining attribute is being updated to include both ‘true’ and ‘false’ and the ‘currency_a’ attribute is being updated to include both USD and GBP currencies.
{
"context": {
"user": "mbj_test",
"password": "xxxx",
"project": {
"name": "imp_payments_demo",
"version": "1.0"
},
"coverage" : {
"name": "api_demo_coverage",
"version": "1.2"
}
},
"entity": {
"id": "674dd0fb59c7b96171b5a8fa",
"conditions": {
"has_app": {"values": ["0"]},
"acct_type": {"values": ["Checking","Savings"]},
"has_online": {"values": ["1","0"]},
"currency_a": {"values": ["USD","GBP"]},
"customer_type": {"values": ["Retail"]}
}
}
}
The return message shows the values that were sent.
In TDO the rule now reflects the new values for ‘has_online’ and ‘currency_a’.