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

# Update a source

> Partial update of a source's `name` and/or `auth_url`. Renaming changes the name you address this source by on every subsequent call; in-flight migrations are unaffected. A rename that matches another source's exact name is refused — it would make both unaddressable. Source knowledge is managed separately at `/sources/{source}/knowledge`.



## OpenAPI

````yaml /api-reference/openapi.json patch /sources/{source}
openapi: 3.1.0
info:
  title: Vern Migration API
  version: 1.0.0
  description: >-
    Run Vern as a headless migration engine. Create a migration, upload a
    customer's files, run the managed agent to generate a preview, then execute
    and export clean data. See the Migration API guides for concepts and
    walkthroughs.
servers:
  - url: https://app.vern.so/api/v1
security:
  - apiKey: []
tags:
  - name: Catalog
    description: Discover the sources and templates you set up in the Vern UI.
  - name: Migrations
    description: Create a migration workspace and upload a customer's files.
  - name: Runs
    description: 'Drive the managed agent: generate, refine, execute, answer, and observe.'
  - name: Export
    description: Download a migration's validated data as CSV.
  - name: Log
    description: The settled record of what a migration did.
  - name: Knowledge
    description: Durable context the agent reads before every run.
  - name: Exports
    description: Download imported data.
  - name: Extractions
    description: >-
      Turn an unstructured file into structured data, without running a
      migration.
paths:
  /sources/{source}:
    patch:
      tags:
        - Catalog
      summary: Update a source
      description: >-
        Partial update of a source's `name` and/or `auth_url`. Renaming changes
        the name you address this source by on every subsequent call; in-flight
        migrations are unaffected. A rename that matches another source's exact
        name is refused — it would make both unaddressable. Source knowledge is
        managed separately at `/sources/{source}/knowledge`.
      operationId: updateSource
      parameters:
        - name: source
          in: path
          required: true
          description: The source name (URL-encode spaces).
          schema:
            type: string
          example: Salesforce
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              minProperties: 1
              properties:
                name:
                  type: string
                  description: >-
                    New display name. Becomes the name you address this source
                    by.
                auth_url:
                  type: string
                  description: The source system's sign-in / portal URL.
            example:
              name: Salesforce (AU)
              auth_url: https://login.salesforce.com
      responses:
        '200':
          description: The updated source.
          content:
            application/json:
              schema:
                type: object
                properties:
                  source:
                    type: object
                    properties:
                      name:
                        type: string
                      logo_url:
                        type:
                          - string
                          - 'null'
                      auth_url:
                        type: string
              example:
                source:
                  name: Salesforce (AU)
                  logo_url: null
                  auth_url: https://login.salesforce.com
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/SourceNotFound'
        '409':
          description: >-
            The source name is ambiguous, or the new name is already used by
            another source in your organisation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  responses:
    BadRequest:
      description: Malformed request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: API key missing, malformed, or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    SourceNotFound:
      description: No source with this name in your organisation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate limit hit — back off and retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Too many requests
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: A human-readable error message.
      required:
        - error
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Vern API key. Create one at Settings → API keys.

````