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

# Enrich Product Version

> Trigger enrichment for an existing product version.

**Authentication Required**: Requires `product:write` permission.



## OpenAPI

````yaml /openapi/merchantops-public.json post /api/products/{key}/versions/{version}/enrich
openapi: 3.1.0
info:
  description: >-
    Public API for the MerchantOps product catalog, pricing, and publishing
    surface.
  title: MerchantOps API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.merchantops.ai
security: []
paths:
  /api/products/{key}/versions/{version}/enrich:
    post:
      tags:
        - Products
      summary: Enrich Product Version
      description: |-
        Trigger enrichment for an existing product version.

        **Authentication Required**: Requires `product:write` permission.
      operationId: enrich_product_version
      parameters:
        - in: path
          name: key
          required: true
          schema:
            title: Key
            type: string
        - in: path
          name: version
          required: true
          schema:
            title: Version
            type: integer
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: X-Organization-ID
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Organization-Id
        - in: cookie
          name: stytch_session
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Stytch Session
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnrichVersionRequest'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnrichVersionResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    EnrichVersionRequest:
      description: Request model for enriching an existing product version.
      properties:
        enrich_product:
          default: true
          description: Run AI enrichment (description, features, attributes)
          title: Enrich Product
          type: boolean
        reinitialize_attributes:
          default: false
          description: Clear and reinitialize attributes from ProductType before enrichment
          title: Reinitialize Attributes
          type: boolean
        scrape_brand_site:
          default: true
          description: Scrape brand website during enrichment
          title: Scrape Brand Site
          type: boolean
        search_lakehouse:
          default: true
          description: Search product lakehouse for existing data
          title: Search Lakehouse
          type: boolean
      title: EnrichVersionRequest
      type: object
    EnrichVersionResponse:
      description: Response model for enrich version request.
      properties:
        job_id:
          description: Job ID for tracking enrichment progress
          title: Job Id
          type: string
        message:
          description: Status message
          title: Message
          type: string
        product_key:
          description: Product key
          title: Product Key
          type: string
        source:
          description: Product source
          title: Source
          type: string
        version:
          description: Version number being enriched
          title: Version
          type: integer
      required:
        - job_id
        - product_key
        - version
        - source
        - message
      title: EnrichVersionResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````