---
title: "Create rule config"
method: POST
path: "/rule/create"
tags: ["Rule Configuration"]
---

# Create rule config

`POST /rule/create`

Create a service-level configuration for `successRate` or `elimination` scoring. Controls the time window, minimum data thresholds, and other parameters used in SR computation.

## Request body

- RuleConfigRequest
  - `merchant_id` string, required
  - `config` object, required — Tagged config variant. `type` is `successRate`, `elimination`, or `debitRouting`. `data` holds the variant-specific fields.

## Response `200`

Rule config created

- RuleConfigResponse
  - `merchant_id` string
  - `config` object

## Changes

- **2026-04-10** `9618544de91a` — 2 info
  - the endpoint scheme security `ApiKeyAuth` was removed from the API
  - the endpoint scheme security `BearerAuth` was removed from the API

[Change history](https://skmtc.dev/juspay/apis/decision-engine/changes/rule/create/post.md)

---

[API](https://skmtc.dev/juspay/apis/decision-engine.md) · [All operations](https://skmtc.dev/juspay/apis/decision-engine/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/juspay/decision-engine/revisions/9618544de91a/schema)
