Skip to main content
PATCH
Actualizar la configuración de institución por id

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Parámetros de ruta

institutionId
string
requerido

The institution's unique identifier (UUID).

Ejemplo:

"550e8400-e29b-41d4-a716-446655440000"

Cuerpo

application/json
connectorMetadata
any

Connector-specific configuration bag. When present, replaces the entire bag wholesale, with ONLY the connector-owned credentials subtree carried over when omitted. baseUrl, organizations[] and authAddress are NOT carried over, so a replacing bag must re-supply baseUrl and organizations[] (both always required) and authAddress (required whenever credentials remain, supplied or carried), or the write is rejected. A credentials subtree in the patched bag ROTATES the stored credentials: it is sealed under a fresh data key in this same write, and this is the only credential-rotation path (there is no separate endpoint). Rotating here does NOT revoke the previous credential upstream and does not take effect on other replicas until their connector cache expires, so rotating a LEAKED credential also requires revoking it at the identity provider. Omitting credentials leaves the stored ones untouched; credentials cannot be removed by PATCH (an empty or partial subtree is rejected). There is no authMode; a rotation supplies the full four-field set. Omit this field entirely to leave the stored bag untouched — an explicitly supplied null decodes to the same absent pointer and is likewise a no-op on this column, not a request to clear it (true of every field of this body, since they are all pointers).

Ejemplo:
connectorType
string

The outbound connector type. Omitted fields are left unchanged.

Ejemplo:

"midaz"

enabled
boolean

Whether the connector configuration is active. Omitted leaves the flag unchanged; explicitly false disables it.

Ejemplo:

false

institutionCode
string

The institution's BACEN CNPJ (8 digits). When present, replaces the stored value.

Ejemplo:

"12345678"

retryPolicyConfig
any

Operational retry policy as arbitrary JSON. When present, replaces the stored value.

Ejemplo:

Respuesta

OK

connectorType
string
requerido

The outbound connector type for this institution.

Ejemplo:

"midaz"

createdAt
string
requerido

RFC 3339 creation timestamp (UTC).

Ejemplo:

"2024-01-15T10:30:00Z"

enabled
boolean
requerido

Whether the connector configuration is active.

Ejemplo:

true

institutionCode
string
requerido

The institution's BACEN CNPJ (8 digits) for return-file headers and file header validation.

Ejemplo:

"12345678"

institutionId
string
requerido

The institution's unique identifier (UUID).

Ejemplo:

"550e8400-e29b-41d4-a716-446655440000"

updatedAt
string
requerido

RFC 3339 last-update timestamp (UTC).

Ejemplo:

"2024-01-15T12:00:00Z"

connectorMetadata
any

Connector-specific configuration bag. The non-secret connector-owned keys (baseUrl, authAddress, crmBaseUrl, organizations[], blockableBalances, blockableAccountTypes, salaryAccountTypes) are preserved verbatim; secret-bearing keys — the whole credentials subtree included — are removed and never echoed. blockableBalances carries the LEDGER's balance-key values — for Midaz, balanceKey (default/overdraft/a client-registered key), not the available/onHold fields of a balance.

Ejemplo:
retryPolicyConfig
any

Operational retry policy (backoff/attempts) as arbitrary JSON.

Ejemplo: