A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello,
I am trying to figure out how to automatically update my product descriptions using the REST API. I looked at the section under PUT, and don't see anything about updating product descriptions. I only see for seo meta titles and descriptions at this link:
https://shopify.dev/docs/api/admin-rest/2023-04/resources/product#put-products-product-id
Can someone point me to the right resource or explain how to format a put request to update just product descriptions?
Thanks!
Hey @hugs75!
Shopify's REST API uses a property named body_html
for product descriptions (see docs here), so to update a product's description the body of the PUT request should look something like this:
{
"product": {
"id": 7198761484388,
"body_html": "Hello world 123"
}
}
Hopefully this helps!