Shopify Python API Unpublish

i14g
New Member
3 0 0

Trying to unpublish a product, but it's not working. Anybody, know what I'm doing wrong?
 

product = shopify.Product()
product.product_id = product_id
product.published = 'false'
product.save()

 

0 Likes
Caleb_Brown
Shopify Partner
2 0 0

Yes, you need to set `published_at` to None if you want it to be unpublished.

0 Likes