I'm using this PHP framework for use with Shopify's API
Can anyone help me with updating a product's variant attributes, specifically the inventory quantity?
The corresponding api call as listed in the Shopify docs is:
/admin/variants/#{id}.json
To update a product attribute such as the title it's a case of:
$fields = array('title' => 'My New Product Edit');
$api->product->modify(89605609, $fields);
Changing these to reflect a variant doesn't work in the same way.
As always, any help greatly appreciated.