Rule Configuration
Update rule config
Update an existing rule configuration.
post/rule/update
Request body
Example request
{
"merchant_id": "merchant_demo",
"config": {
"type": "successRate",
"data": {
"defaultBucketSize": 20,
"subLevelInputConfig": [
{
"paymentMethodType": "CARD",
"paymentMethod": "CREDIT",
"bucketSize": 30,
"hedgingPercent": 0.05
}
],
"margin": 0.2
}
}
}Response
Rule config updated
Example response
{
"message": "Success Rate Configuration created successfully",
"merchant_id": "merchant_demo",
"config": {
"type": "successRate",
"data": {
"defaultBucketSize": 20,
"subLevelInputConfig": [
{
"paymentMethodType": "CARD",
"paymentMethod": "CREDIT",
"bucketSize": 30,
"hedgingPercent": 0.05
}
],
"margin": 0.2
}
}
}