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

# Preview



## OpenAPI

````yaml /openapi.json post /v1/workspaces/{workspaceId}/projects/{projectId}/item-slots/bulk-edit/components/preview
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}/item-slots/bulk-edit/components/preview:
    post:
      tags:
        - Specification Component Bulk Edit
      summary: Preview
      operationId: SpecificationComponentBulkEditController_preview_v1
      parameters:
        - name: workspaceId
          required: true
          in: path
          schema:
            type: string
        - name: projectId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpecificationComponentBulkPreviewDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/SpecificationComponentBulkPreviewResponseDto
      security:
        - bearer: []
components:
  schemas:
    SpecificationComponentBulkPreviewDto:
      type: object
      properties:
        parents:
          minItems: 1
          maxItems: 100
          type: array
          items:
            type: object
            properties:
              slotId:
                type: string
              slotVersion:
                type: integer
                exclusiveMinimum: 0
                maximum: 9007199254740991
              primaryItemId:
                anyOf:
                  - type: string
                  - type: 'null'
              primaryItemVersion:
                anyOf:
                  - type: integer
                    exclusiveMinimum: 0
                    maximum: 9007199254740991
                  - type: 'null'
            required:
              - slotId
              - slotVersion
              - primaryItemId
              - primaryItemVersion
            additionalProperties: false
        componentIds:
          minItems: 1
          maxItems: 100
          type: array
          items:
            type: string
      required:
        - parents
        - componentIds
      additionalProperties: false
    SpecificationComponentBulkPreviewResponseDto:
      type: object
      properties:
        schemaVersion:
          type: number
          enum:
            - 1
        selectionMode:
          type: string
        selectedCount:
          type: number
        parents:
          type: array
          items:
            $ref: '#/components/schemas/SpecificationComponentBulkParentDto'
        targets:
          type: array
          items:
            $ref: '#/components/schemas/SpecificationComponentBulkTargetDto'
        fields:
          type: array
          items:
            $ref: '#/components/schemas/SpecificationComponentBulkFieldDto'
        impact:
          $ref: '#/components/schemas/ComponentBulkImpactDto'
      required:
        - schemaVersion
        - selectedCount
        - parents
        - targets
        - fields
        - impact
    SpecificationComponentBulkParentDto:
      type: object
      properties:
        slotId:
          type: string
        slotVersion:
          type: number
        primaryItemId:
          type: string
          nullable: true
        primaryItemVersion:
          type: number
          nullable: true
      required:
        - slotId
        - slotVersion
        - primaryItemId
        - primaryItemVersion
    SpecificationComponentBulkTargetDto:
      type: object
      properties:
        componentId:
          type: string
        componentVersion:
          type: number
        catalogFamilyId:
          type: string
        catalogItemId:
          type: string
        catalogItemSourceId:
          type: string
          nullable: true
        links:
          type: array
          items:
            $ref: '#/components/schemas/ComponentParentLinkDto'
        name:
          type: string
      required:
        - componentId
        - componentVersion
        - catalogFamilyId
        - catalogItemId
        - catalogItemSourceId
        - links
        - name
    SpecificationComponentBulkFieldDto:
      type: object
      properties:
        fieldKey:
          type: string
        label:
          type: string
        type:
          type: object
        options:
          type: array
          items:
            type: object
        nullable:
          type: boolean
        valueFormat:
          enum:
            - attribute
            - decimal_string
          type: string
        precision:
          type: number
        scale:
          type: number
        eligibility:
          enum:
            - unavailable
            - editable
          type: string
        reason:
          type: string
          nullable: true
        requiresCoreChangeIntent:
          type: boolean
        values:
          type: array
          items:
            $ref: '#/components/schemas/SpecificationComponentBulkFieldValueDto'
      required:
        - fieldKey
        - label
        - type
        - options
        - nullable
        - valueFormat
        - eligibility
        - reason
        - requiresCoreChangeIntent
        - values
    ComponentBulkImpactDto:
      type: object
      properties:
        selectedParentCount:
          type: number
        additionalParentCount:
          type: number
        affectedProjectCount:
          type: number
      required:
        - selectedParentCount
        - additionalParentCount
        - affectedProjectCount
    ComponentParentLinkDto:
      type: object
      properties:
        parentId:
          type: string
        parentItemId:
          type: string
        linkId:
          type: string
      required:
        - parentId
        - parentItemId
        - linkId
    SpecificationComponentBulkFieldValueDto:
      type: object
      properties:
        value:
          nullable: true
          oneOf:
            - type: string
            - type: number
            - type: boolean
            - type: array
              items:
                type: string
        componentId:
          type: string
      required:
        - value
        - componentId
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````