spree/spree — Issue #1111: Using the spree edge API to update a products count_on_hand field
Author: doktorj
Created: 2012-02-07 23:01:36+00:00
State: open

Hey guys.

I'm not getting any errors anymore when I run these, and I can get the
product records out with json and see the json data using curl, using
the same product id/auth key, and running it with an admin auth key,
but when I try to update the product, it runs, then doesn't say
anything or update the product count using:

curl -X PUT -u vqqsUXrsnfs1FDUO6CCp:x -d '{"product":
{"count_on_hand":"100"}}' http://localhost:3000/api/products/706676762.json
-H "Content-Type:application/json"

I also tried:

curl -X PUT -u vqqsUXrsnfs1FDUO6CCp:x -d '{"product":
{"count_on_hand":"100"}}' http://localhost:3000/api/products/706676762/products.json
-H "Content-Type:application/json"

I'm getting the examples of the edgedocs api page, which may not be
valid/updated, but I have e feeling it's close to working...
Thanks,
J