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

# Diff two tap versions

> Server-computed, ready-to-render diff of the tap configuration and script between two versions.



## OpenAPI

````yaml /openapi.yaml get /api/v1/tap/version/diff
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.11.3
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/tap/version/diff:
    get:
      tags:
        - Versions
      summary: Diff two tap versions
      description: >-
        Server-computed, ready-to-render diff of the tap configuration and
        script between two versions.
      parameters:
        - name: name
          in: query
          required: true
          schema:
            type: string
        - name: version
          in: query
          required: true
          schema:
            type: integer
          description: Target version of the comparison
        - name: against
          in: query
          required: true
          schema:
            type: integer
          description: Base version to compare against
      responses:
        '200':
          description: Field-level config diff and line-level script diff
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityVersionDiff'
        '404':
          description: One of the versions does not exist
        '500':
          description: Error
components:
  schemas:
    EntityVersionDiff:
      type: object
      properties:
        from:
          type: integer
          description: Base version of the comparison (the `against` parameter)
        to:
          type: integer
          description: Target version of the comparison (the `version` parameter)
        config:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              before:
                type: string
              after:
                type: string
              change:
                type: string
        script:
          type: object
          description: Script diff (taps only)
          properties:
            before:
              type: string
            after:
              type: string
            lines:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                  text:
                    type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````