> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Update an inbound source config

> Partial update. Re-enabling a config, changing its
intervalSeconds, or moving it to a different credential
re-validates the configured inbound discovery reserve (422 on
violation).



## OpenAPI

````yaml en/openapi/v3-current/sta.yaml patch /v1/inbound-source-configs/{id}
openapi: 3.0.3
info:
  title: Lerian STA API
  description: >-
    API for Lerian STA — the participant-side rail that connects the institution
    to Banco Central do Brasil's STA (Sistema de Transferencia de Arquivos)
    file-exchange system. It covers outbound and inbound file transfers, BACEN
    credential management, inbound source polling configuration, and the tenant
    trust-store for message-signing certificates.
  version: v1.0.0
servers:
  - url: https://sta.sandbox.lerian.net
security:
  - BearerAuth: []
tags:
  - name: transfers
    description: >-
      Outbound and inbound STA file transfers — creation, listing, read,
      cancellation, retry, and urgent-processing marking.
  - name: trust-store
    description: >-
      Tenant trust-store X.509 certificate lifecycle: listing, upload, deletion,
      and status summary.
  - name: credentials
    description: >-
      BACEN STA credential management: creation, read, update, rotation,
      revocation, and connectivity testing.
  - name: inbound-source-configs
    description: >-
      Inbound source polling configuration: creation, read, update, deletion,
      manual poll triggering, and discovery reserve usage.
  - name: health
    description: Service health and readiness reporting.
paths:
  /v1/inbound-source-configs/{id}:
    patch:
      tags:
        - inbound-source-configs
      summary: Update an inbound source config
      description: |-
        Partial update. Re-enabling a config, changing its
        intervalSeconds, or moving it to a different credential
        re-validates the configured inbound discovery reserve (422 on
        violation).
      parameters:
        - description: Inbound source config UUID
          in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/http.UpdateInboundSourceConfigRequest'
        description: update payload
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/http.InboundSourceConfigView'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
components:
  schemas:
    http.UpdateInboundSourceConfigRequest:
      properties:
        bacenSystemCode:
          type: string
        bacenSystemFilterCode:
          type: string
        credentialId:
          description: >-
            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.
          type: string
        displayName:
          type: string
        intervalSeconds:
          maximum: 1800
          minimum: 15
          type: integer
        isEnabled:
          type: boolean
        maxFileSizeBytes:
          minimum: 1
          type: integer
        retentionDays:
          maximum: 3650
          minimum: 1
          type: integer
        sourceProduct:
          type: string
        urgencyEnabled:
          description: >-
            UrgencyEnabled, when present, toggles urgent inbound eligibility for
            this

            source. Pointer so an omitted field is distinguished from an
            explicit

            false.
          type: boolean
      type: object
    http.InboundSourceConfigView:
      properties:
        bacenSystemCode:
          type: string
        bacenSystemFilterCode:
          type: string
        createdAt:
          type: string
        credentialId:
          description: >-
            CredentialID is the UUID string of the BACEN credential bound to
            this

            inbound source (mandatory and always present).
          type: string
        deletedAt:
          type: string
        displayName:
          type: string
        id:
          type: string
        intervalSeconds:
          type: integer
        isEnabled:
          type: boolean
        maxFileSizeBytes:
          type: integer
        retentionDays:
          type: integer
        sourceProduct:
          type: string
        updatedAt:
          type: string
        urgencyEnabled:
          type: boolean
      type: object
  securitySchemes:
    BearerAuth:
      description: 'Bearer token authentication (format: "Bearer {token}")'
      in: header
      name: Authorization
      type: apiKey

````