Updateing stock quantity with node package
-
I’m trying to update products using the batch function of woocommerce-api-rest (node)
(https://woocommerce.github.io/woocommerce-rest-api-docs/?javascript#batch-update-products)
however the quantities are not updated even the function return being 200 (ok).The documentation suggests using the following structure:
update: [ { id: 799, default_attributes: [ { id: 6, name: 'Color', option: 'Green' }, { id: 0, name: 'Size', option: 'M' } ] } ]
What are the differences between objects within default_attributes? Because both have the same keys, would the first object be the original state of the product and the second what would be the new state?
- The topic ‘Updateing stock quantity with node package’ is closed to new replies.