> ## Documentation Index
> Fetch the complete documentation index at: https://api-reference.hyperswitch.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Success Rate Config

> Curl example for updating success-rate scoring config.

# Update Success Rate Config

```bash theme={null}
curl --location "$BASE_URL/rule/update" \
  --header "$AUTH_HEADER" \
  --header "Content-Type: application/json" \
  --data '{
    "merchant_id": "merchant_demo",
    "config": {
      "type": "successRate",
      "data": {
        "defaultBucketSize": 30,
        "defaultLatencyThreshold": 2500,
        "defaultHedgingPercent": 0.1
      }
    }
  }'
```

```json theme={null}
{ "merchant_id": "merchant_demo", "config": { "type": "successRate" } }
```
