Saltar al contenido principal
PATCH
/
v1
/
inbound-source-configs
/
{id}
Actualizar una configuración de fuente entrante
curl --request PATCH \
  --url https://sta.sandbox.lerian.net/v1/inbound-source-configs/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bacenSystemCode": "<string>",
  "bacenSystemFilterCode": "<string>",
  "credentialId": "<string>",
  "displayName": "<string>",
  "intervalSeconds": 907,
  "isEnabled": true,
  "maxFileSizeBytes": 2,
  "retentionDays": 1825,
  "sourceProduct": "<string>",
  "urgencyEnabled": true
}
'
import requests

url = "https://sta.sandbox.lerian.net/v1/inbound-source-configs/{id}"

payload = {
"bacenSystemCode": "<string>",
"bacenSystemFilterCode": "<string>",
"credentialId": "<string>",
"displayName": "<string>",
"intervalSeconds": 907,
"isEnabled": True,
"maxFileSizeBytes": 2,
"retentionDays": 1825,
"sourceProduct": "<string>",
"urgencyEnabled": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
bacenSystemCode: '<string>',
bacenSystemFilterCode: '<string>',
credentialId: '<string>',
displayName: '<string>',
intervalSeconds: 907,
isEnabled: true,
maxFileSizeBytes: 2,
retentionDays: 1825,
sourceProduct: '<string>',
urgencyEnabled: true
})
};

fetch('https://sta.sandbox.lerian.net/v1/inbound-source-configs/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://sta.sandbox.lerian.net/v1/inbound-source-configs/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'bacenSystemCode' => '<string>',
'bacenSystemFilterCode' => '<string>',
'credentialId' => '<string>',
'displayName' => '<string>',
'intervalSeconds' => 907,
'isEnabled' => true,
'maxFileSizeBytes' => 2,
'retentionDays' => 1825,
'sourceProduct' => '<string>',
'urgencyEnabled' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://sta.sandbox.lerian.net/v1/inbound-source-configs/{id}"

payload := strings.NewReader("{\n \"bacenSystemCode\": \"<string>\",\n \"bacenSystemFilterCode\": \"<string>\",\n \"credentialId\": \"<string>\",\n \"displayName\": \"<string>\",\n \"intervalSeconds\": 907,\n \"isEnabled\": true,\n \"maxFileSizeBytes\": 2,\n \"retentionDays\": 1825,\n \"sourceProduct\": \"<string>\",\n \"urgencyEnabled\": true\n}")

req, _ := http.NewRequest("PATCH", url, payload)

req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.patch("https://sta.sandbox.lerian.net/v1/inbound-source-configs/{id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"bacenSystemCode\": \"<string>\",\n \"bacenSystemFilterCode\": \"<string>\",\n \"credentialId\": \"<string>\",\n \"displayName\": \"<string>\",\n \"intervalSeconds\": 907,\n \"isEnabled\": true,\n \"maxFileSizeBytes\": 2,\n \"retentionDays\": 1825,\n \"sourceProduct\": \"<string>\",\n \"urgencyEnabled\": true\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://sta.sandbox.lerian.net/v1/inbound-source-configs/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bacenSystemCode\": \"<string>\",\n \"bacenSystemFilterCode\": \"<string>\",\n \"credentialId\": \"<string>\",\n \"displayName\": \"<string>\",\n \"intervalSeconds\": 907,\n \"isEnabled\": true,\n \"maxFileSizeBytes\": 2,\n \"retentionDays\": 1825,\n \"sourceProduct\": \"<string>\",\n \"urgencyEnabled\": true\n}"

response = http.request(request)
puts response.read_body
{
  "bacenSystemCode": "<string>",
  "bacenSystemFilterCode": "<string>",
  "createdAt": "<string>",
  "credentialId": "<string>",
  "deletedAt": "<string>",
  "displayName": "<string>",
  "id": "<string>",
  "intervalSeconds": 123,
  "isEnabled": true,
  "maxFileSizeBytes": 123,
  "retentionDays": 123,
  "sourceProduct": "<string>",
  "updatedAt": "<string>",
  "urgencyEnabled": true
}
{}
{}
{}
{}
{}

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de ruta

id
string
requerido

Inbound source config UUID

Cuerpo

application/json

update payload

bacenSystemCode
string
bacenSystemFilterCode
string
credentialId
string

CredentialID, when supplied, replaces the bound credential. A nil pointer leaves the stored credential untouched (partial-update semantics mirror intervalSeconds). The uuid tag rejects a malformed value at the boundary (400). The handler parses it to a *uuid.UUID before threading it into the update command.

displayName
string
intervalSeconds
integer
Rango requerido: 15 <= x <= 1800
isEnabled
boolean
maxFileSizeBytes
integer
Rango requerido: x >= 1
retentionDays
integer
Rango requerido: 1 <= x <= 3650
sourceProduct
string
urgencyEnabled
boolean

UrgencyEnabled, when present, toggles urgent inbound eligibility for this source. Pointer so an omitted field is distinguished from an explicit false.

Respuesta

OK

bacenSystemCode
string
bacenSystemFilterCode
string
createdAt
string
credentialId
string

CredentialID is the UUID string of the BACEN credential bound to this inbound source (mandatory and always present).

deletedAt
string
displayName
string
id
string
intervalSeconds
integer
isEnabled
boolean
maxFileSizeBytes
integer
retentionDays
integer
sourceProduct
string
updatedAt
string
urgencyEnabled
boolean