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 |
---|---|
58 | |
11 | |
8 | |
7 | |
6 |
Thanks to all who participated in our AMA with 2H Media on planning your 2023 marketing bu...
By Jacqui Mar 30, 2023Thanks 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, 2023