Product Visibility problems

jetblackstar1
Tourist
7 0 3

So historically over the years on the REST API I've always used Product.published_at set to a past date to make a product visible and null to hide it. 

A client who has a PIM I've written is getting products they can disable but not re enable. 


On closer inspection putting in null in that field removes it from the Online Shop sales channel. But adding it back in after doesn't re instate it. 

Looking at ProductListing on the API seems to indicate that is not possible for the API to control sales channels, or am I wrong?

 

What is the correct convention these days for displaying/hiding a product? 

Cant seem to figure that out from the Docs. 

 

Any help is appreciated. 

Replies 0 (0)