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

# Update product details

> Updates product information. Accepts UUID or taxonomy ID.



## OpenAPI

````yaml api-reference/v1/openapi.yaml patch /v1/products/{id}
openapi: 3.1.0
info:
  title: Goods API
  version: 1.0.0
  description: >-
    API for Goods grocery operations - scanner app, admin dashboard, and
    customer features
  contact:
    name: Goods Team
    url: https://goods.app
servers:
  - url: http://localhost:3000
    description: Local development
  - url: https://dev.api.switchyard.run
    description: Development
  - url: https://api.switchyard.run
    description: Production
security: []
tags:
  - name: v1
    description: API v1 - unified domain-based endpoints
  - name: Scanner
    description: Scanner app endpoints for drivers and pickers
  - name: Sweeps
    description: Sweep management - retail store pickup operations
  - name: RFC Picks
    description: Ready-for-checkout picking operations
  - name: Inventory
    description: Inventory management and barcode lookup
  - name: Admin
    description: Admin dashboard endpoints
  - name: Orders
    description: Order management
  - name: Products
    description: Product catalog management
  - name: Notifications
    description: Push, email, SMS, and Slack notification management
paths:
  /v1/products/{id}:
    patch:
      tags:
        - Products
      summary: Update product details
      description: Updates product information. Accepts UUID or taxonomy ID.
      parameters:
        - schema:
            type: string
            description: Product UUID or taxonomy ID
          required: true
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 500
                brand:
                  type: string
                  nullable: true
                  maxLength: 200
                selling_price:
                  type: number
                  minimum: 0
                is_rfc_item:
                  type: boolean
                is_active:
                  type: boolean
                category_name:
                  type: string
                  nullable: true
                  maxLength: 100
                temperature_zone:
                  type: string
                  enum:
                    - ambient
                    - refrigerated
                    - frozen
                size:
                  type: string
                  nullable: true
                  maxLength: 100
                image_url:
                  type: string
                  nullable: true
                  format: uri
      responses:
        '200':
          description: Product updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  product:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      taxonomy_id:
                        type: string
                        nullable: true
                      name:
                        type: string
                      brand:
                        type: string
                        nullable: true
                      image_url:
                        type: string
                        nullable: true
                      size:
                        type: string
                        nullable: true
                      selling_price:
                        type: number
                        nullable: true
                      is_rfc_item:
                        type: boolean
                      is_active:
                        type: boolean
                      category_name:
                        type: string
                        nullable: true
                      category_id:
                        type: string
                        nullable: true
                        format: uuid
                      subcategory_id:
                        type: string
                        nullable: true
                        format: uuid
                      temperature_zone:
                        type: string
                        nullable: true
                      description:
                        type: string
                        nullable: true
                      scraped_product_id:
                        type: string
                        nullable: true
                        format: uuid
                      created_at:
                        type: string
                        format: date-time
                      updated_at:
                        type: string
                        format: date-time
                      deleted_at:
                        type: string
                        nullable: true
                        format: date-time
                    required:
                      - id
                      - taxonomy_id
                      - name
                      - brand
                      - image_url
                      - size
                      - selling_price
                      - is_rfc_item
                      - is_active
                      - category_name
                      - category_id
                      - subcategory_id
                      - temperature_zone
                      - description
                      - scraped_product_id
                      - created_at
                      - updated_at
                      - deleted_at
                required:
                  - success
                  - product
        '404':
          description: Product not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                    example: Not found
                required:
                  - error
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                    example: Not found
                required:
                  - error

````