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

# Update schema



## OpenAPI

````yaml /api-reference/openapi.json patch /schemas/{id}
openapi: 3.0.3
info:
  title: FileFeed API
  version: '2026-05-25'
  description: >-
    Official FileFeed REST API for connections, pipelines, schemas, pipeline
    runs, webhooks, outbound uploads, documents, files, and notifications.
    Date-based API versioning is controlled by the `FileFeed-Version` request
    header (default `2024-09-01`; latest `2026-05-25`); this document describes
    the `2026-05-25` shape.
servers:
  - url: https://api.sftpsync.io
security:
  - ApiKeyAuth: []
tags:
  - name: Connections
  - name: Pipelines
  - name: Schemas
  - name: Pipeline Runs
  - name: Webhooks
  - name: Outbound Uploads
  - name: Documents
  - name: Files
  - name: Notifications
  - name: Clients (deprecated)
paths:
  /schemas/{id}:
    patch:
      tags:
        - Schemas
      summary: Update schema
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSchemaParams'
      responses:
        '200':
          description: Schema
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Schema'
components:
  schemas:
    UpdateSchemaParams:
      allOf:
        - $ref: '#/components/schemas/CreateSchemaParams'
    Schema:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        definition:
          $ref: '#/components/schemas/SchemaDefinition'
        isActive:
          type: boolean
          description: Always present in responses (currently always true).
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - definition
        - createdAt
        - updatedAt
    CreateSchemaParams:
      type: object
      description: >-
        The schema body is a JSON Schema `definition` object. The legacy
        `fields` array is ignored by the API.
      properties:
        name:
          type: string
        description:
          type: string
        definition:
          $ref: '#/components/schemas/SchemaDefinition'
      required:
        - name
        - definition
    SchemaDefinition:
      type: object
      description: >-
        A JSON Schema document describing the columns the processed data must
        conform to.
      properties:
        type:
          type: string
          description: JSON Schema root type — typically `object`.
        properties:
          type: object
          additionalProperties: true
          description: >-
            Map of column name to JSON Schema property, e.g. { id: { type:
            "string" } }.
        required:
          type: array
          items:
            type: string
          description: Column names that must be present (at least one).
      additionalProperties: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````