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

# List product item history



## OpenAPI

````yaml /openapi.yaml post /workspaces/{workspace_id}/product_items/history
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /workspaces/{workspace_id}/product_items/history:
    post:
      tags:
        - ProductItem
      summary: List product item history
      operationId: product_items#history
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestBodyProductItemHistory'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/item_history_collection'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    requestBodyProductItemHistory:
      type: object
      properties:
        ids:
          type: array
          items:
            type: integer
          description: >-
            Product item ids to scope history to. Omit entirely to return all
            history for the workspace's product items; an explicit empty array
            returns no results.
        identifier:
          type: string
          description: Exact product item identifier to filter to.
        created_at_from:
          type: string
          format: date-time
          nullable: true
          description: Only include entries created at or after this time.
        created_at_to:
          type: string
          format: date-time
          nullable: true
          description: Only include entries created at or before this time.
    item_history_collection:
      type: object
      properties:
        item_histories:
          type: array
          items:
            $ref: '#/components/schemas/item_history'
        columns:
          type: object
          additionalProperties:
            type: object
            properties:
              name:
                type: string
              type:
                type: string
              logic_type:
                type: string
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message
    item_history:
      type: object
      properties:
        id:
          type: integer
        entity_type:
          type: string
        entity_id:
          type: integer
        identifier:
          type: string
          nullable: true
        column_changes:
          type: object
          description: >-
            Changed columns by slug. Columns hidden from the current user's role
            (field access) are left out.
        has_hidden_changes:
          type: boolean
          description: >-
            The entry also changed columns hidden from the current user's role.
            Their slugs and values are not returned; an entry that only changed
            hidden columns has empty `column_changes`.
        created_at:
          type: string
          format: date-time
        user:
          type: object
          nullable: true
          properties:
            id:
              type: integer
            first_name:
              type: string
              nullable: true
            last_name:
              type: string
              nullable: true
            email:
              type: string
            logo_url:
              type: string
              nullable: true
        collaboration_request:
          type: object
          nullable: true
          description: >-
            Set when a collaborator (`user`) made the change through a
            collaboration request shared with them.
          properties:
            id:
              type: integer
            name:
              type: string
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

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