How to update published scope using Admin Rest API with Python

Hi,

I am using the following code, but there is no change to the product

product = shopify.Product.find(7723320901868) 
product.published_scope = 'global'

product.save()

What I need to change is to make the product available on all channels

I have tried to set either global or web, but it doesn’t update anything.

The problem was solved by just adding product.published = True:

product.published = True
product.published_scope = 'web'

product.save()