upsert_product
Create or update a product in inFlow Inventory; include ID and timestamp to update, or omit to create new. Legacy write bypasses safe writes; use set_product.
Instructions
[LEGACY IMMEDIATE WRITE — HIGH RISK: BYPASSES INFLOW_ENABLE_SAFE_WRITES] Use set_product instead. Create a new product or update an existing one. Include ID to update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Product ID (required for updates) | |
| sku | No | Product SKU | |
| cost | No | Product cost | |
| name | Yes | Product name | |
| weight | No | Product weight | |
| barcode | No | Product barcode | |
| isActive | No | Whether product is active | |
| timestamp | No | Timestamp for concurrency control (required for updates) | |
| categoryId | No | Category ID | |
| weightUnit | No | Weight unit (e.g., kg, lb) | |
| description | No | Product description | |
| customFields | No | Custom field values | |
| defaultPrice | No | Default selling price | |
| reorderPoint | No | Reorder point quantity | |
| reorderQuantity | No | Quantity to reorder |