update_commerce_product
Update a product. Only the arguments you set are changed.
Sending options or variants replaces the whole set — variants that no longer match the options are dropped along with their stock counters. Use set_commerce_product_options or the variant tools for safer, targeted edits.
Args: project_id: The project ID. product_id: The product ID. Required. title: New product name. description: New description. slug: New URL slug. subtitle: New subtitle. product_type: digital, download, course, template, membership, service, or physical. pricing_type: one_time, subscription, or pay_what_you_want. status: draft, active, or archived. price_amount: New price in the smallest currency unit. Leave -1 to keep current. compare_at_amount: New struck-through price. Leave -1 to keep current. currency: New ISO currency code. image_url: New primary image URL. image_alt: New primary image alt text. sku: New SKU. checkout_url: New external checkout link. shipping_note: New shipping copy. highlights: JSON array of selling-point strings, replaces the existing list. faqs: JSON array of {question, answer}, replaces the existing list. gallery: JSON array of {url, title, alt}, replaces the existing gallery. delivery_details: JSON object, replaces the existing delivery details. social_proof: JSON object, replaces the existing social proof. seo: JSON object, replaces the existing SEO block. discount: JSON object, replaces the existing product discount. options: JSON array of variation axes, replaces all options. variants: JSON array of variants, replaces all variants.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seo | No | ||
| sku | No | ||
| faqs | No | ||
| slug | No | ||
| title | No | ||
| status | No | ||
| gallery | No | ||
| options | No | ||
| currency | No | ||
| discount | No | ||
| subtitle | No | ||
| variants | No | ||
| image_alt | No | ||
| image_url | No | ||
| highlights | No | ||
| product_id | Yes | ||
| project_id | Yes | ||
| description | No | ||
| checkout_url | No | ||
| price_amount | No | ||
| pricing_type | No | ||
| product_type | No | ||
| social_proof | No | ||
| shipping_note | No | ||
| delivery_details | No | ||
| compare_at_amount | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |