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

# Patch Product

> Partial update of a product. Re-embeds only if content fields change.



## OpenAPI

````yaml /openapi.json patch /api/v1/catalog/products/{sku}
openapi: 3.1.0
info:
  title: VIZOCHOK API
  description: >

    ## VIZOCHOK — AI Shopping Assistant API


    Integrate an AI-powered grocery shopping assistant into your app or website.

    The assistant helps customers find products, build shopping lists, plan
    meals, and manage recipes using your store's real inventory.


    ### Integration


    | Method | Use Case | Auth |

    |--------|----------|------|

    | **WebSocket** `/api/v1/ws/chat` | Real-time streaming chat | API key via
    first message |


    ### Authentication


    All endpoints require an API key:

    ```

    Authorization: Bearer sk_...

    ```


    **Key types:**

    - `sk_*` — **Secret key** (backend-to-backend). Full access. Pass
    `X-User-Id` header for user identity.

    - `pk_*` — **Public key** (frontend widget). Chat-only access. Pass
    `X-User-Token` (JWT) for user identity.


    Get your keys from the admin panel or contact support.


    ### Quick Start

    1. Get an API key

    2. Upload your product catalog: `PUT /catalog/products` (returns job_id,
    embedding runs in background)

    3. Connect WebSocket and start chatting!

    4. Configure webhook URLs in the admin panel for real-time prices and cart
    sync
  version: 1.0.0
servers:
  - url: https://api.vizochok.com
    description: Production
security: []
tags:
  - name: Catalog
    description: 'Product catalog management: upload, search, update, and delete products.'
  - name: Catalog Jobs
    description: Track bulk catalog upload and re-embedding job progress.
  - name: Conversations
    description: View and manage customer chat conversations.
  - name: Users
    description: 'User profile management: language, dietary preferences, favorites.'
paths:
  /api/v1/catalog/products/{sku}:
    patch:
      tags:
        - Catalog
      summary: Patch Product
      description: Partial update of a product. Re-embeds only if content fields change.
      operationId: patch_product_api_v1_catalog_products__sku__patch
      parameters:
        - name: sku
          in: path
          required: true
          schema:
            type: string
            title: Sku
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProductPatch'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductPatchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ProductPatch:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Product display name
        category_path:
          anyOf:
            - type: string
            - type: 'null'
          title: Category Path
          description: Category hierarchy, e.g. "Dairy > Milk"
        brand:
          anyOf:
            - type: string
            - type: 'null'
          title: Brand
          description: Product brand name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Product description for search and AI context
        ingredients:
          anyOf:
            - type: string
            - type: 'null'
          title: Ingredients
          description: Ingredients list (plain text)
        country:
          anyOf:
            - type: string
            - type: 'null'
          title: Country
          description: Country of origin
        unit:
          anyOf:
            - type: string
            - type: 'null'
          title: Unit
          description: 'Unit of measurement: "pcs", "kg", "l", "g", "ml"'
        quantity_step:
          anyOf:
            - type: number
            - type: 'null'
          title: Quantity Step
          description: >-
            Minimum increment for quantity selector (e.g. 0.1 for products sold
            by weight)
        min_quantity:
          anyOf:
            - type: number
            - type: 'null'
          title: Min Quantity
          description: Minimum order quantity (e.g. 0.2 for 200g minimum)
        weight:
          anyOf:
            - type: number
            - type: 'null'
          title: Weight
          description: Product weight in grams (for packaged goods)
        volume:
          anyOf:
            - type: number
            - type: 'null'
          title: Volume
          description: Product volume in milliliters (for liquids)
        image_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Image Url
          description: URL to product image
        attributes:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Attributes
          description: >-
            Custom key-value attributes (e.g. {"organic": true, "fat_percent":
            "2.5"})
        barcode:
          anyOf:
            - type: string
            - type: 'null'
          title: Barcode
          description: EAN/UPC barcode
        is_active:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Active
          description: Set to false to soft-delete the product
      type: object
      title: ProductPatch
      description: Partial update model. All fields are optional.
    ProductPatchResponse:
      properties:
        sku:
          type: string
          title: Sku
          description: SKU of the updated product
        updated_fields:
          items:
            type: string
          type: array
          title: Updated Fields
          description: List of field names that were updated
        re_embedded:
          type: boolean
          title: Re Embedded
          description: Whether the product was re-embedded due to content field changes
      type: object
      required:
        - sku
        - updated_fields
        - re_embedded
      title: ProductPatchResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````