Pular para o conteúdo principal
PATCH
/
v1
/
contexts
/
{contextId}
/
sources
/
{sourceId}
Update a reconciliation source
curl --request PATCH \
  --url https://matcher.sandbox.lerian.net/v1/contexts/{contextId}/sources/{sourceId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Secondary Bank Account",
  "type": "LEDGER",
  "side": "RIGHT",
  "config": {}
}
'
{
  "id": "<string>",
  "contextId": "<string>",
  "name": "<string>",
  "config": {},
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Autorizações

Authorization
string
header
obrigatório

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

Cabeçalhos

X-Request-Id
string

A unique identifier for tracing the request across services.

X-Idempotency-Key
string

Optional idempotency key for safe retries. Also accepts Idempotency-Key as an alternative header name. If the same key is sent again and the original request was already processed, the cached response is returned with X-Idempotency-Replayed: true.

See Retries and idempotency for details.

Parâmetros de caminho

contextId
string
obrigatório

The unique identifier of the reconciliation context.

sourceId
string
obrigatório

The unique identifier of the reconciliation source.

Corpo

application/json

Source updates

name
string
Maximum string length: 50
Exemplo:

"Secondary Bank Account"

type
enum<string>

Category of data source for reconciliation

Opções disponíveis:
LEDGER,
BANK,
GATEWAY,
CUSTOM,
FETCHER
Exemplo:

"LEDGER"

side
enum<string>

Side of the reconciliation this source feeds

Opções disponíveis:
LEFT,
RIGHT
Exemplo:

"RIGHT"

config
object

Resposta

Successfully updated source.

The response includes the X-Idempotency-Replayed header.

If the value is false, the request was just processed. If the value is true, the response is a replay of a previously processed request.

See Retries and idempotency for more details.

id
string
contextId
string
name
string
type
enum<string>

Category of data source for reconciliation

Opções disponíveis:
LEDGER,
BANK,
GATEWAY,
CUSTOM,
FETCHER
side
enum<string>

Side of the reconciliation this source feeds

Opções disponíveis:
LEFT,
RIGHT
config
object
createdAt
string
updatedAt
string