A space to discuss online store customization, theme development, and Liquid templating.
I'd like to duplicate the live theme into an unpublished theme via the API, then connect it to a Github branch.
The AI bot on Shopify support seems to imply this is possible:
but when I try I get an error about it not being a proper URL:
'{"errors":{"src":["131026583597 is not a valid URL"]}}'
Solved! Go to the solution
This is an accepted solution.
Hey @njsaunders
I think the bot is confused here - src is for external zipped themes, e.g. `http://themes.shopify.com/theme.zip`
I don't believe there's a way to duplicate themes via the API (other than reading the theme, downloading each file and creating a zip).
Scott | Developer Advocate @ Shopify
This is an accepted solution.
Hey @njsaunders
I think the bot is confused here - src is for external zipped themes, e.g. `http://themes.shopify.com/theme.zip`
I don't believe there's a way to duplicate themes via the API (other than reading the theme, downloading each file and creating a zip).
Scott | Developer Advocate @ Shopify
Ok - Thanks.
Is there any way to connect/create a theme to a github branch via the API?
There are some options for connecting to GitHub brances with the CLI, but our regular APIs don't interact with the GitHub integration.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me 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
Hi,
Try looking at this one: https://apps.shopify.com/themeflow
You should be able to create the flow that you need.