title: How to update stock_quantity in python using woocommerce api
body: <p>Trying to follow the api sample from <a href="http://woothemes.github.io/woocommerce-rest-api-docs/?python#update-a-product-attribute" rel="nofollow">http://woothemes.github.io/woocommerce-rest-api-docs/?python#update-a-product-attribute</a>, but it's not updating the stock_quantity.  I've confirmed that I have read/write access set for my api key.<br>
  I get the following error from the code below:
  u'errors': [{u'message': u'No product data specified to edit product', u'code': u'woocommerce_api_missing_product_data'}]}
  Any ideas?</p>
  
  <pre><code>import sys
  import json
  from woocommerce import API
  wcapi = API(
      url="http://(myurl)",
      consumer_key="ck_&lt;mykey&gt;",
      consumer_secret="cs_&lt;mysecret&gt;",
      timeout=30
  )
  data = {
      "stock_quantity": 5
  }
  
  print(wcapi.put("products/18", data).json())
  </code></pre>