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



## OpenAPI

````yaml /openapi.json post /v1/workspaces/{workspaceId}/collections/{id}/entries/lifecycle/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}/collections/{id}/entries/lifecycle/preview:
    post:
      tags:
        - Collection Item Lifecycle
      summary: Preview Entries
      operationId: CollectionItemLifecycleController_previewEntries_v1
      parameters:
        - name: workspaceId
          required: true
          in: path
          schema:
            type: string
            pattern: ^[1-9]\d*$
        - name: id
          required: true
          in: path
          schema:
            type: string
            pattern: ^[1-9]\d*$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CollectionLifecyclePreviewDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/CollectionEntryLifecyclePreviewResponseDto
      security:
        - bearer: []
components:
  schemas:
    CollectionLifecyclePreviewDto:
      type: object
      properties:
        action:
          type: string
          enum:
            - archive
            - delete
            - restore
            - purge
        ids:
          minItems: 1
          maxItems: 100
          type: array
          items:
            type: string
      required:
        - action
        - ids
      additionalProperties: false
    CollectionEntryLifecyclePreviewResponseDto:
      type: object
      properties:
        selectedCount:
          type: number
        targets:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              version:
                type: number
              name:
                type: string
            required:
              - id
              - version
              - name
        blockers:
          type: array
          items:
            $ref: '#/components/schemas/LifecycleBlocker'
        items:
          type: array
          items:
            $ref: '#/components/schemas/LifecycleItem'
        workflows:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              name:
                type: string
              kind:
                type: string
              itemId:
                type: string
              itemName:
                type: string
            required:
              - id
              - name
              - kind
              - itemId
              - itemName
        collectionVersion:
          type: number
      required:
        - selectedCount
        - targets
        - blockers
        - items
        - workflows
        - collectionVersion
    LifecycleBlocker:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        code:
          type: string
      required:
        - id
        - name
        - code
    LifecycleItem:
      type: object
      properties:
        id:
          type: string
        version:
          type: number
        state:
          type: string
          enum:
            - active
            - archived
            - deleted
        name:
          type: string
        referenceNumber:
          type:
            - string
            - 'null'
        imageUrl:
          type:
            - string
            - 'null'
        categoryName:
          type:
            - string
            - 'null'
        areaNames:
          type: array
          items:
            type: string
        supplierName:
          type:
            - string
            - 'null'
        archivedAt:
          type:
            - string
            - 'null'
        archivedBy:
          anyOf:
            - $ref: '#/components/schemas/LifecycleActor'
            - type: 'null'
        archiveReason:
          type:
            - string
            - 'null'
        deletedAt:
          type:
            - string
            - 'null'
        deletedBy:
          anyOf:
            - $ref: '#/components/schemas/LifecycleActor'
            - type: 'null'
        expiresAt:
          type:
            - string
            - 'null'
      required:
        - id
        - version
        - state
        - name
        - referenceNumber
        - imageUrl
        - categoryName
        - areaNames
        - supplierName
        - archivedAt
        - archivedBy
        - archiveReason
        - deletedAt
        - deletedBy
        - expiresAt
    LifecycleActor:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
      required:
        - id
        - name
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

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