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

# Line diff of two CodeGen script versions

> Server-computed line diff from `against` to `version`; each line is typed `ctx`, `add` or `del`. Requires `pipeline:read`.



## OpenAPI

````yaml /openapi.yaml get /api/v1/pipelines/{name}/codegen-scripts/{kind}/versions/{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.28.0
  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/pipelines/{name}/codegen-scripts/{kind}/versions/{version}/diff:
    get:
      tags:
        - Pipelines
      summary: Line diff of two CodeGen script versions
      description: >-
        Server-computed line diff from `against` to `version`; each line is
        typed `ctx`, `add` or `del`. Requires `pipeline:read`.
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
        - in: path
          name: kind
          required: true
          schema:
            type: string
            enum:
              - dataQuality
              - transformation
        - in: path
          name: version
          required: true
          schema:
            type: integer
        - in: query
          name: against
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: The diff
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodeGenScriptVersionDiff'
        '400':
          description: Unknown kind
        '404':
          description: Unknown pipeline or version
components:
  schemas:
    CodeGenScriptVersionDiff:
      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` path parameter)
        script:
          type: object
          description: Same shape as the tap script diff of `EntityVersionDiff`
          properties:
            before:
              type: string
            after:
              type: string
            lines:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - ctx
                      - add
                      - del
                  text:
                    type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.