Duplicate theme and connect to github

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"]}}'

Hey @njsaunders

I think the bot is confused here - src is for external zipped themes, e.g. [http://themes.shopify.com/theme.zip](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).

1 Like

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.

Hi,

Try looking at this one: https://apps.shopify.com/themeflow

You should be able to create the flow that you need.