Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

API PUT product body_html not formatting HTML

Solved

API PUT product body_html not formatting HTML

timd
Shopify Partner
124 6 79

I'm trying to update a product's description (with a PUT request) from another API  GET request

 

The GET response gives me a response with a body_html object formatted like this:

<h2>This is my Message.<\/h2>

I cant seem to pass this data in the PUT request so that the HTML is formatted in the product.description object

 

I've tried:
"description":"<h2>This is my Message.<\/h2>"

and

"description":"<h2>This is my Message.</h2>"

But the the description is always output as literally "<h2>This is my Message.</h2>" — the HTML tags are interpreted as text characters instead of HTML.

Accepted Solution (1)

timd
Shopify Partner
124 6 79

This is an accepted solution.

Found the issue, I need to put to body_html which isn't documented in the product objects

View solution in original post

Reply 1 (1)

timd
Shopify Partner
124 6 79

This is an accepted solution.

Found the issue, I need to put to body_html which isn't documented in the product objects