I have an Shopify APP that I’m currently updating the Admin API from 2022-07 to 2022-10 version. One of the breaking changes I’m facing is that the ProductInput object no longer has the published attribute. Seems like it is not possible to create a published product as of this newer version, instead you have to create a product and then call the publishablePublish mutation, but it requires the write_publications access scope which currently I don’t have. So if I have to use this I’d have to ask my merchants to reinstall/reauthorize the app and this is not good for my customer experience atm. Does anyone know an alternative solution for that? Any help is appreciated
Hey @hpsmatheus - at the moment, if you do need to publish a created product after it’s created through the API, the workflow you outlined using the publishablePublish mutation is the only way to do this currently within the GraphQL API. That said, I get definitely understand where you’re coming from here. My understanding is that the intent is to sort of disconnect product creation from the process of displaying them on sales channels/the storefront.
That said, you do bring up a great point, I can’t guarantee anything on my end, but I’ll forward this thread and feedback on to our product team for future consideration. Again, I can’t guarantee a followup here or if/when anything would be implemented, but we can get developer eyes on the thread.
Hope this helps and thanks for getting in touch.
Al | Shopify Developer Support