Skip to main content
POST
/
v1
/
config
/
contexts
/
{contextId}
/
clone
Clone a reconciliation context
curl --request POST \
  --url https://matcher.sandbox.lerian.net/v1/config/contexts/{contextId}/clone \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Q1 2025 Reconciliation (Copy)",
  "includeSources": true,
  "includeRules": true,
  "includeFeeSchedules": true
}
'
{
  "context": {
    "id": "019c96a0-10a0-72d2-9fb0-2b7de8093182",
    "tenantId": "019c96a0-0a98-7287-9a31-786e0809c769",
    "name": "Bank Reconciliation Q1",
    "type": "1:1",
    "interval": "daily",
    "status": "DRAFT",
    "rateId": "019c96a0-2b20-7123-9a1b-2c3d4e5f6a7b",
    "feeToleranceAbs": "0",
    "feeTolerancePct": "0",
    "feeNormalization": "NET",
    "autoMatchOnUpload": false,
    "createdAt": "2026-02-02T13:37:55Z",
    "updatedAt": "2026-02-02T13:37:55Z"
  },
  "sourcesCloned": 3,
  "rulesCloned": 5,
  "fieldMapsCloned": 3,
  "feeSchedulesCloned": 2
}

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.

X-Idempotency-Key
string

A unique key to ensure safe retries of the request.

Path Parameters

contextId
string
required

The unique identifier of the reconciliation context to clone.

Body

application/json

Clone context payload

Request payload for cloning a reconciliation context

name
string
required

Name for the cloned context

Required string length: 1 - 100
Example:

"Q1 2025 Reconciliation (Copy)"

includeSources
boolean
default:true

Whether to clone associated sources

includeRules
boolean
default:true

Whether to clone associated match rules

includeFeeSchedules
boolean
default:true

Whether to clone associated fee schedules

Response

Successfully cloned context

Response after cloning a reconciliation context

context
object
sourcesCloned
integer

Number of sources cloned

Example:

3

rulesCloned
integer

Number of match rules cloned

Example:

5

fieldMapsCloned
integer

Number of field maps cloned

Example:

3

feeSchedulesCloned
integer

Number of fee schedules cloned

Example:

2