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

# Compare two versions

> What changed between two versions: agents, tasks, variables, limits
and pinned registry versions. The canvas layout is left out.



## OpenAPI

````yaml get /api/crew-templates/{template_id}/versions/diff
openapi: 3.1.0
info:
  title: Nx1 AI API
  description: |

    AI API for Nx1 Data Platform Management and Automated Data Tasks.

    Authentication is required via PSK in Authorization header.

    Default PSK is | [ask a friend] |
  version: 0.10.2
servers: []
security: []
paths:
  /api/crew-templates/{template_id}/versions/diff:
    get:
      tags:
        - Crew templates
      summary: Compare two versions
      description: |-
        What changed between two versions: agents, tasks, variables, limits
        and pinned registry versions. The canvas layout is left out.
      operationId: diff_versions_api_crew_templates__template_id__versions_diff_get
      parameters:
        - name: template_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: ID of the crew template.
            title: Template Id
          description: ID of the crew template.
        - name: from
          in: query
          required: true
          schema:
            type: integer
            minimum: 1
            description: The earlier version.
            title: From
          description: The earlier version.
        - name: to
          in: query
          required: true
          schema:
            type: integer
            minimum: 1
            description: The later version.
            title: To
          description: The later version.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CrewVersionDiff'
        '404':
          description: Template or version not found.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    CrewVersionDiff:
      properties:
        from_version:
          type: integer
          title: From Version
        to_version:
          type: integer
          title: To Version
        changes:
          items:
            $ref: '#/components/schemas/VersionChange'
          type: array
          title: Changes
      type: object
      required:
        - from_version
        - to_version
      title: CrewVersionDiff
      description: What differs between two versions of a crew.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    VersionChange:
      properties:
        area:
          type: string
          enum:
            - agents
            - tasks
            - variables
            - limits
            - process
            - pins
          title: Area
        path:
          type: string
          title: Path
          description: What changed, e.g. `tasks[0].max_execution_time`.
        kind:
          type: string
          enum:
            - added
            - removed
            - changed
          title: Kind
        before:
          title: Before
        after:
          title: After
      type: object
      required:
        - area
        - path
        - kind
      title: VersionChange
      description: One difference between two versions of a crew.
    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:
    OAuth2AuthorizationCodeBearer:
      type: oauth2
      flows:
        authorizationCode:
          scopes: {}
          authorizationUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/auth
          tokenUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/token
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization-PSK

````

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