meteor-shopify
meteor-shopify copied to clipboard
How to use Modify correctly
There's plenty examples of getting data, but how about one of modifying data? No matter what I try I just get Exception in setTimeout callback: Error: Missing option id
. I'm passing an object just like in Shopify's documentation:
{
"product": {
"id": 632910392,
"title": "New product title"
}
}
But every time, Exception in setTimeout callback: Error: Missing option id
. Am I supposed to specify the ID somewhere else? Where am I going wrong?
For the record, i've tried without the outer "product" object, like api.modifyProduct({id: 12345})
, but this just gets me Error: failed [400] {"errors":{"product":"Required parameter missing or invalid"}}
. It will tell me if the ID is invalid in this case though, so it seems like it's connecting. The real question is how does one modify from there? Passing more keys of the object (such as title) returns the same error