I’m creating products through an app using GraphQL and I’m wondering if I can set the sale channel availability for the newly created product.
I’m currently only creating products for the online store, but I may need to create for different channels later on.
We do have the Publication object, but the required scope (read_publications/write_publications) is currently a protected scope that we are still building out a process for applying for. I'd recommend staying subscribed to our Developer Changelog for any updates to the availability of this object.
Just found an solution:
1) You can currently publish a product to the online store via the deprecated 'published' field on the productCreate mutation
2) You can publish to any sales channel with the PublishablePublish mutation.
You can find the original answer here.