Updates product inventory, including total quantity, whether the product is in stock, and whether the product inventory is tracked.
The updateInventoryVariants()
function is a Promise that resolves to the updated inventory variant data.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
Product ID.
Inventory item to update.