A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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
Solved! Go to the solution
This is an accepted solution.
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
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
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
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog