Update variant
update_variantUpdate an existing product variant by applying a JSON Merge Patch with only the fields to change, such as pricing or stock. Null values are rejected; use bulk_update_prices to clear a price.
Instructions
Update an existing variant via JSON Merge Patch: send only the fields to change (e.g. pricing or stocks). No field of UpdateVariantRequest is nullable, so null values are rejected by validation before any call — to clear a price, use bulk_update_prices (its price/manual_discount_price accept null). Call get_operation_schema("UpdateVariant") for the exact request shape.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Variant ID (UUID). | |
| variant | Yes | Merge-patch record matching the UpdateVariantRequest schema (see get_operation_schema("UpdateVariant")). Must not be empty. |