Update Product Descriptions via PUT

Update Product Descriptions via PUT

hugs75
Visitor
1 0 0

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!

Reply 1 (1)

Kyle_W
Shopify Partner
179 28 115

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!

Kyle W | Helium
Helium builds apps that thousands of merchants depend on:
- Customer Fields ✪✪✪✪✪ (350+ reviews)
- Meteor Mega Menu ✪✪✪✪✪ (250+ reviews)