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

# Compute Diff



## OpenAPI

````yaml /openapi.json post /v1/workspaces/{workspaceId}/projects/{projectId}/items/{id}/diff
openapi: 3.1.0
info:
  title: Specurate API
  description: ''
  version: 1.0.0
  contact: {}
servers:
  - url: https://app.specurate.com/api
    description: API Server
security: []
tags: []
paths:
  /v1/workspaces/{workspaceId}/projects/{projectId}/items/{id}/diff:
    post:
      tags:
        - Project Items
      summary: Compute Diff
      operationId: ProjectItemsController_computeDiff_v1
      parameters:
        - name: workspaceId
          required: true
          in: path
          schema:
            type: string
        - name: projectId
          required: true
          in: path
          schema:
            type: string
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DiffResponseDto'
components:
  schemas:
    DiffResponseDto:
      type: object
      properties:
        entries:
          description: >-
            Every physical catalog-owned column delta, including descriptive
            fields that do not create status-worthy drift
          type: array
          items:
            $ref: '#/components/schemas/DiffEntryDto'
        orphanedRefs:
          $ref: '#/components/schemas/OrphanedRefsDto'
      required:
        - entries
        - orphanedRefs
    DiffEntryDto:
      type: object
      properties:
        slug:
          type: string
        label:
          type: string
        logicType:
          type: string
          description: Source entity that owns the catalog value
        projectValue:
          type: object
          nullable: true
        catalogValue:
          type: object
          nullable: true
        status:
          enum:
            - added
            - removed
            - changed
          type: string
          description: >-
            added = key in catalog, missing in project; removed = in project,
            missing in catalog; changed = both present but differ
      required:
        - slug
        - label
        - logicType
        - projectValue
        - catalogValue
        - status
    OrphanedRefsDto:
      type: object
      properties:
        family:
          type: boolean
        item:
          type: boolean
        familySource:
          type: boolean
        itemSource:
          type: boolean
      required:
        - family
        - item
        - familySource
        - itemSource

````