Create product and make buyable but do not list (hide from store)

I need to create an product via API but do not want to show it in store. It should be buyable so that I can’t use a draft.

I can hide a product when deselect sales channel via admin interface.

But how can I do this via the API?

Product properties don’t have the sales channel?
https://shopify.dev/docs/admin-api/rest/reference/products/product

Hey @danielzuid

Please see @hassain 's response here: https://community.shopify.com/post/700202