Development discussions around Shopify APIs
Hi,
I am attempting to set the Product.Options[0].name property. When I excute a post or put, the value is not updated. How is the Product.Options data updated?
Thanks for your help.
Todd Hollar
Hi Todd,
You must reference the option you wish to update by its ID. For instance:
PUT /admin/products/123456789.json
{
"product": {
"id": 123456789,
"options": [
{
"id": 987654321,
"name": "New Name"
}
]
}
}
Hope this helps!
User | RANK |
---|---|
55 | |
11 | |
7 | |
6 | |
5 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023