title: Updating product stock quantity based on SKU with WooCommerce API?
body: <p>I'd like to update the stock of a product with the Woocommerce API. 
  I managed to do this by querying on the <strong>product ID</strong> and using the following code:</p>
  
  <pre><code>curl -X PUT \
    https://www.kilikili.be/wp-json/wc/v3/products/10340 \
    -H ...
    -b ...
    -d '{
      "manage_stock": true,
      "stock_quantity": "1"
  }'
  </code></pre>
  
  <p>However, I'd like to do the same now by using the <strong>sku</strong>. 
  <br>I tried this: </p>
  
  <pre><code>curl -X PUT \
    'https://www.kilikili.be/wp-json/wc/v3/products?sku=test' \
    -H ...
    -b ...
    -d '{
      "manage_stock": true,
      "stock_quantity": "2"
  }'
  </code></pre>
  
  <p>However, I'm getting the following <strong>response</strong>:</p>
  
  <pre><code>{
      "code": "rest_no_route",
      "message": "No route was found matching the URL and the request method",
      "data": {
          "status": 404
      }
  }
  </code></pre>
  
  <p>Any idea on how to achieve this or if it is even possible? </p>