Update institution config by id
Applies a partial update (connectorType/institutionCode/retryPolicyConfig/connectorMetadata/branchFormat/accountFormat/enabled) to an existing institution configuration addressed by the path id. connectorMetadata, when present, replaces the entire bag wholesale. Invalid input is refused with 400 SBJ-0001, including a branchFormat/accountFormat that does not compile or is longer than 64 characters, and a merged configuration left without a valid institutionCode. Returns 404 when the institution has no configuration.
Autorizaciones
JWT bearer token issued by the identity provider.
Parámetros de ruta
The institution's unique identifier (UUID).
"550e8400-e29b-41d4-a716-446655440000"
Cuerpo
Regular expression (Go RE2 syntax, at most 64 characters) the institution DECLARES for the account number a court may indicate in a BLOQUEIO restriction. A value is proven invalid (TARGET_INVALID) only when it fails the WHOLE pattern; with no declaration nothing is ever proven invalid. Per institution and never defaulted. A pattern that does not compile, or is longer than 64 characters, is refused with 400. Omitted leaves the stored declaration unchanged; an empty string clears it.
"^[0-9]{1,12}$"
Regular expression (Go RE2 syntax, at most 64 characters) the institution DECLARES for the branch (agência) number a court may indicate in a BLOQUEIO restriction. A value is proven invalid (TARGET_INVALID) only when it fails the WHOLE pattern; with no declaration nothing is ever proven invalid. Per institution and never defaulted. A pattern that does not compile, or is longer than 64 characters, is refused with 400. Omitted leaves the stored declaration unchanged; an empty string clears it.
"^[0-9]{4}$"
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 is REFUSED with 400: credentials are written only by PUT /v1/institutions/{institutionId}/connector-credentials. Omitting credentials leaves the stored ones untouched (they are carried over). There is no authMode. crmMode is part of the replaced bag like any other key: a patched bag that omits it drops the override and the institution falls back to inheriting MIDAZ_CRM_MODE. 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).
The outbound connector type. Omitted fields are left unchanged.
"midaz"
Whether the connector configuration is active. Omitted leaves the flag unchanged; explicitly false disables it.
false
The institution's BACEN CNPJ (8 digits). When present, replaces the stored value.
"12345678"
Operational retry policy as arbitrary JSON. When present, replaces the stored value.
Respuesta
OK
The outbound connector type for this institution.
"midaz"
RFC 3339 creation timestamp (UTC).
"2024-01-15T10:30:00Z"
Whether the connector configuration is active.
true
The institution's BACEN CNPJ (8 digits) for return-file headers and file header validation.
"12345678"
The institution's unique identifier (UUID).
"550e8400-e29b-41d4-a716-446655440000"
RFC 3339 last-update timestamp (UTC).
"2024-01-15T12:00:00Z"
The regular expression the institution declared for the account number of a court-indicated target; omitted when none is declared.
"^[0-9]{1,12}$"
The regular expression the institution declared for the branch (agência) number of a court-indicated target; omitted when none is declared.
"^[0-9]{4}$"
Connector-specific configuration bag. The non-secret connector-owned keys (baseUrl, authAddress, crmBaseUrl, crmMode, 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.
Present and false only when the stored connector metadata cannot be parsed by its connector; absent otherwise. The offending value is never echoed.
false
The CRM surface this institution resolves to (legacy|embedded): its own crmMode override when the connector metadata names one, the service-wide default otherwise. Derived and read-only; omitted when the connector metadata cannot be parsed.
legacy, embedded "legacy"
Operational retry policy (backoff/attempts) as arbitrary JSON.

