I am attempting to update a custom metafield for each product. We have tens of thousands of products and I was hoping to send the update metafield information using something like this:
It seems I need to first capture the ID of each metafield previously created before I can update a metafield? Is that correct??? Given that we have tens of thousands of products do I first need to obtain every metafield ID of every product and store it locally before making a second API call to then update the metafield?
I was hoping to simply update the metafield using the product ID as the API would have enough information to process the update?
I note many other people on the forum have a similar issue.
Any help would be appreciated? Thank you for reading.
The company I work for went down this route as well with indexing a large range of product information, and ended up writing a custom JSON array, storing it to the customer’s assets folder in their theme then calling that with some liquid. Though once you get a number of products in there, it can get pretty large.
Fabian - It would be worth seeing the complete data you are posting to the API call along with the url you are using you are posting to. If using a private API key be sure to remove both the key and password before posting.