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

# Compare Agent Preset Versions

> Compare two preset versions belonging to the same preset.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json get /workspaces/{workspace_id}/agent/presets/{preset_id}/versions/{version_id}/compare
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /workspaces/{workspace_id}/agent/presets/{preset_id}/versions/{version_id}/compare:
    get:
      tags:
        - agent-presets
      summary: Compare Agent Preset Versions
      description: Compare two preset versions belonging to the same preset.
      operationId: agent-presets-compare_agent_preset_versions
      parameters:
        - name: preset_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Preset Id
        - name: version_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Version Id
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workspace Id
        - name: compare_to
          in: query
          required: true
          schema:
            type: string
            format: uuid
            description: Version ID to compare against
            title: Compare To
          description: Version ID to compare against
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentPresetVersionDiff'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
        - ServiceAccountApiKeyBearer: []
components:
  schemas:
    AgentPresetVersionDiff:
      properties:
        base_version_id:
          type: string
          format: uuid
          title: Base Version Id
        base_version:
          type: integer
          title: Base Version
        compare_version_id:
          type: string
          format: uuid
          title: Compare Version Id
        compare_version:
          type: integer
          title: Compare Version
        instructions_changed:
          type: boolean
          title: Instructions Changed
          default: false
        base_instructions:
          anyOf:
            - type: string
            - type: 'null'
          title: Base Instructions
        compare_instructions:
          anyOf:
            - type: string
            - type: 'null'
          title: Compare Instructions
        scalar_changes:
          items:
            $ref: '#/components/schemas/ScalarFieldChange'
          type: array
          title: Scalar Changes
        list_changes:
          items:
            $ref: '#/components/schemas/StringListFieldChange'
          type: array
          title: List Changes
        tool_approval_changes:
          items:
            $ref: '#/components/schemas/ToolApprovalFieldChange'
          type: array
          title: Tool Approval Changes
        skill_changes:
          items:
            $ref: '#/components/schemas/AgentPresetSkillBindingChange'
          type: array
          title: Skill Changes
        total_changes:
          type: integer
          title: Total Changes
          default: 0
      type: object
      required:
        - base_version_id
        - base_version
        - compare_version_id
        - compare_version
      title: AgentPresetVersionDiff
      description: Structured diff between two preset versions.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ScalarFieldChange:
      properties:
        field:
          type: string
          title: Field
        old_value:
          title: Old Value
        new_value:
          title: New Value
      type: object
      required:
        - field
      title: ScalarFieldChange
      description: Scalar field change between two preset versions.
    StringListFieldChange:
      properties:
        field:
          type: string
          title: Field
        added:
          items:
            type: string
          type: array
          title: Added
        removed:
          items:
            type: string
          type: array
          title: Removed
      type: object
      required:
        - field
      title: StringListFieldChange
      description: List diff for preset version fields.
    ToolApprovalFieldChange:
      properties:
        tool:
          type: string
          title: Tool
        old_value:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Old Value
        new_value:
          anyOf:
            - type: boolean
            - type: 'null'
          title: New Value
      type: object
      required:
        - tool
      title: ToolApprovalFieldChange
      description: Approval diff for a single tool.
    AgentPresetSkillBindingChange:
      properties:
        skill_id:
          type: string
          format: uuid
          title: Skill Id
        skill_name:
          type: string
          title: Skill Name
        old_skill_version_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Old Skill Version Id
        old_skill_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Old Skill Version
        new_skill_version_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: New Skill Version Id
        new_skill_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: New Skill Version
      type: object
      required:
        - skill_id
        - skill_name
      title: AgentPresetSkillBindingChange
      description: Diff entry for skill binding changes between preset versions.
    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
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: fastapiusersauth
    ServiceAccountApiKeyBearer:
      type: http
      description: Tracecat service account API key.
      scheme: bearer

````