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 |
---|---|
10 | |
4 | |
3 | |
3 | |
3 |
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023