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

# Salvar um novo conector

> Persist a connector's credentials to the configured SecretStore.

For PostgreSQL connectors, also accepts an optional ``table_config`` list
that is written to ``postgres_client.yaml`` so the sync flow knows which
tables to extract.

After saving, automatically creates a Prefect deployment with the
instance-level cron schedule when ``sync_schedule`` is provided.



## OpenAPI

````yaml /api-reference/catalog-api.json post /connectors
openapi: 3.1.0
info:
  title: Strattum Catalog API
  description: Expõe a estrutura do data lake — camadas, conectores e tabelas.
  version: 0.1.0
servers: []
security: []
paths:
  /connectors:
    post:
      tags:
        - connectors
      summary: Salvar um novo conector
      description: >-
        Persist a connector's credentials to the configured SecretStore.


        For PostgreSQL connectors, also accepts an optional ``table_config``
        list

        that is written to ``postgres_client.yaml`` so the sync flow knows which

        tables to extract.


        After saving, automatically creates a Prefect deployment with the

        instance-level cron schedule when ``sync_schedule`` is provided.
      operationId: save_connector_connectors_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SaveConnectorRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorMetadata'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SaveConnectorRequest:
      properties:
        type:
          type: string
          title: Type
        name:
          type: string
          title: Name
        credentials:
          additionalProperties: true
          type: object
          title: Credentials
        table_config:
          anyOf:
            - items:
                $ref: '#/components/schemas/TableConfigItem'
              type: array
            - type: 'null'
          title: Table Config
        sync_schedule:
          anyOf:
            - type: string
            - type: 'null'
          title: Sync Schedule
      type: object
      required:
        - type
        - name
        - credentials
      title: SaveConnectorRequest
    ConnectorMetadata:
      properties:
        id:
          type: string
          title: Id
        type:
          type: string
          title: Type
        name:
          type: string
          title: Name
        created_at:
          type: string
          title: Created At
        updated_at:
          type: string
          title: Updated At
        sync_schedule:
          anyOf:
            - type: string
            - type: 'null'
          title: Sync Schedule
      type: object
      required:
        - id
        - type
        - name
        - created_at
        - updated_at
      title: ConnectorMetadata
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TableConfigItem:
      properties:
        schema:
          type: string
          title: Schema
          default: public
        table:
          type: string
          title: Table
        mode:
          type: string
          enum:
            - incremental
            - full_refresh
          title: Mode
        cursor_column:
          anyOf:
            - type: string
            - type: 'null'
          title: Cursor Column
      type: object
      required:
        - table
        - mode
      title: TableConfigItem
      description: Single table entry for postgres_client.yaml generation.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````