Skip to main content
POST
/
v1
/
config
/
contexts
/
{contextId}
/
rules
Create a match rule
curl --request POST \
  --url https://matcher.sandbox.lerian.net/v1/config/contexts/{contextId}/rules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "priority": 1,
  "type": "EXACT",
  "config": {}
}
'
{
  "config": {},
  "contextId": "<string>",
  "createdAt": "<string>",
  "id": "<string>",
  "priority": 123,
  "type": "EXACT",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication (format: "Bearer {token}")

Headers

X-Request-Id
string

A unique identifier for tracing the request across services.

Path Parameters

contextId
string
required

The unique identifier of the reconciliation context.

Body

application/json

Match rule creation payload

priority
integer
required
Required range: 1 <= x <= 1000
Example:

1

type
enum<string>
required

Type of matching rule algorithm

Available options:
EXACT,
TOLERANCE,
DATE_LAG
Example:

"EXACT"

config
object

Response

Successfully created match rule

config
object
contextId
string
createdAt
string
id
string
priority
integer
type
enum<string>

Type of matching rule algorithm

Available options:
EXACT,
TOLERANCE,
DATE_LAG
updatedAt
string