woo_update_stock
ACTION on the WooCommerce store. Sets the stock quantity of one product or variation (enables stock management on it). Returns before → after. In safe mode the first call returns a PREVIEW with confirm_id: show it and call again with confirm_id only after the user approves.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | Yes | ||
| store_id | Yes | ||
| confirm_id | No | Token di conferma ritornato dall'anteprima. Ripassa lo STESSO payload + confirm_id per eseguire davvero la scrittura. | |
| product_id | Yes | ||
| variation_id | No | For a variation of a variable product |