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

# Update a Catalog product

> Attaches or detaches product-only Shared Attributes atomically with their values. Omitted existing extensions are preserved; only remove_attribute_extension_ids detaches them.

## Usage notes

* `attributes` is a sparse merge. Omitted existing values remain unchanged.
* Send `expected_updated_at` from your latest read to protect against stale writes.
* `attribute_extension_ids` attaches product-only Attributes. Omitting it or sending an empty array preserves existing extensions.
* Only `remove_attribute_extension_ids` detaches extensions. Detaching also removes their stored values or Relation links atomically.
* You cannot detach an Attribute owned by the base Product Schema.


## OpenAPI

````yaml openapi.yaml PATCH /catalog/{id}
openapi: 3.1.0
info:
  title: Lasso API
  description: AI-powered product data extraction and enhancement API
  version: 1.0.0
  contact:
    name: Lasso Support
    url: https://lasso.ai
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://app.productlasso.com/api/v1
    description: Production
security:
  - BearerAuth: []
paths:
  /catalog/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
    patch:
      tags:
        - Catalog
      summary: Update a Catalog product
      description: >-
        Attaches or detaches product-only Shared Attributes atomically with
        their values. Omitted existing extensions are preserved; only
        remove_attribute_extension_ids detaches them.
      operationId: updateCatalogProduct
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CatalogProductUpdateInput'
      responses:
        '200':
          description: Catalog product updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CatalogProduct'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  schemas:
    CatalogProductUpdateInput:
      type: object
      additionalProperties: false
      required:
        - attributes
      properties:
        attributes:
          type: object
          additionalProperties: true
          description: Sparse values are merged with the current public Attribute values.
        expected_updated_at:
          type: string
          format: date-time
        attribute_extension_ids:
          type: array
          maxItems: 2000
          uniqueItems: true
          description: >-
            Active Shared Attribute UUIDs to attach. Existing product-only
            Attributes are preserved when this field is omitted or empty.
          items:
            type: string
            format: uuid
        remove_attribute_extension_ids:
          type: array
          maxItems: 2000
          uniqueItems: true
          description: >-
            Product-only Shared Attribute UUIDs to detach. Their product values
            or Relation links are removed atomically; base-schema Attributes
            cannot be removed here.
          items:
            type: string
            format: uuid
      example:
        attributes:
          price: 22.9
        expected_updated_at: '2026-08-31T09:15:00.000Z'
        remove_attribute_extension_ids:
          - e683267d-2450-4ea8-a977-462d46a8f610
    CatalogProduct:
      type: object
      additionalProperties: false
      required:
        - id
        - company_id
        - schema_id
        - source
        - external_id
        - status
        - attributes
        - attribute_extensions
        - created_at
        - updated_at
        - deleted_at
      properties:
        id:
          type: string
          format: uuid
        company_id:
          type: string
          format: uuid
        schema_id:
          type: string
          format: uuid
        source:
          type: string
          enum:
            - manual
            - product_extraction
            - shopify
        external_id:
          type:
            - string
            - 'null'
        status:
          type: string
          enum:
            - draft
            - active
            - archived
        attributes:
          type: object
          additionalProperties: true
          description: >-
            Values backed by active Shared Attributes from the base schema or
            attribute_extensions.
        attribute_extensions:
          type: array
          maxItems: 2000
          items:
            $ref: '#/components/schemas/CatalogAttributeExtension'
        relations:
          type: object
          additionalProperties: true
          description: >-
            Hydrated relation values. Present on the single-product GET
            response.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        deleted_at:
          type:
            - string
            - 'null'
          format: date-time
      examples:
        - id: 13adf145-d9a0-4c28-9235-3f7e17af4cf1
          company_id: 81e2b625-e6e8-4dd5-a50f-22803806cc10
          schema_id: 9e1c77dd-8f10-41ca-bfe8-e672b89692d1
          source: manual
          external_id: null
          status: draft
          attributes:
            sku: A-100
            product_name: Alpine bottle
            price: 24.9
          attribute_extensions:
            - attribute_id: e683267d-2450-4ea8-a977-462d46a8f610
              key: supplier_note
          created_at: '2026-08-31T09:30:00.000Z'
          updated_at: '2026-08-31T09:30:00.000Z'
          deleted_at: null
    CatalogAttributeExtension:
      type: object
      additionalProperties: false
      required:
        - attribute_id
        - key
      description: >-
        An active Shared Attribute attached only to this Catalog product,
        without changing its Product Schema.
      properties:
        attribute_id:
          type: string
          format: uuid
        key:
          type: string
          description: Current canonical Attribute key.
    Error:
      type: object
      required:
        - status_code
        - error_type
        - message
        - request_id
      properties:
        status_code:
          type: integer
        error_type:
          type: string
          enum:
            - invalid_request
            - unauthenticated
            - forbidden
            - not_found
            - conflict
            - validation_error
            - rate_limited
            - service_unavailable
            - internal_error
        message:
          type: string
        request_id:
          type: string
        code:
          type: string
          description: >-
            Stable machine-readable detail code for validation, conflict, and
            retryable availability errors.
        retryable:
          type: boolean
          description: Whether the request can be retried without changing its payload.
        attribute_id:
          type: string
          format: uuid
          description: Stable Attribute identity when the error is scoped to one Attribute.
        attribute_key:
          type: string
          description: Attribute key when the error is scoped to one Attribute.
        details:
          type: object
          additionalProperties: true
        current_updated_at:
          type: string
          format: date-time
          description: >-
            Current resource revision supplied for client-directed refetch after
            a stale write.
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Authentication error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: Resource conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ValidationError:
      description: Request validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````

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