> ## 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.

# Atualizar credenciais de um conector

> Update credentials and/or sync schedule for an existing connector.

Re-tests the connection before saving updated credentials. When
``credentials`` is ``None``, the existing credentials are kept unchanged
and no re-test is performed.

When ``sync_schedule`` is provided it is persisted and applied to the
Prefect deployment immediately, satisfying the "change reflects immediately"
requirement.



## OpenAPI

````yaml /api-reference/catalog-api.json put /connectors/{connector_id}
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/{connector_id}:
    put:
      tags:
        - connectors
      summary: Atualizar credenciais de um conector
      description: >-
        Update credentials and/or sync schedule for an existing connector.


        Re-tests the connection before saving updated credentials. When

        ``credentials`` is ``None``, the existing credentials are kept unchanged

        and no re-test is performed.


        When ``sync_schedule`` is provided it is persisted and applied to the

        Prefect deployment immediately, satisfying the "change reflects
        immediately"

        requirement.
      operationId: update_connector_connectors__connector_id__put
      parameters:
        - name: connector_id
          in: path
          required: true
          schema:
            type: string
            title: Connector Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateConnectorRequest'
      responses:
        '200':
          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:
    UpdateConnectorRequest:
      properties:
        credentials:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Credentials
        sync_schedule:
          anyOf:
            - type: string
            - type: 'null'
          title: Sync Schedule
      type: object
      title: UpdateConnectorRequest
    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
    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

````