Upload the whole theme into the app without taking time

Hello everyone,

I am building a shopify app where it requires to upload any available theme from a store (live and Drafts both) to make sure shcatbot can fix the issue of the merchants in there theme directly in it.

Currently I am fetching the theme files one by one which make this process to take 15-30 minutes. And as per expectation the merchants will not use this app anymore.

Now what I want that done for every merchant in less that 30s.

  • A merchant install our app.
  • Merchant can see all the themes available in their store.
  • Merchant able to see all the available themes within there store.
  • They can able to select any theme where they want to make changes in the code.
  • The theme code show in the code editor of my app same like Vs code or Cursor.
  • On the left there is chat option to describe what they issue are facing.
  • Ai chatbot anaylyze the theme and fix that issue or add a new section, feature etc
  • Merchant click on upload theme.
  • The new theme upload as a backup within the theme section as a backup or new theme after zipping.

What is the best solution or which shopify app document file can help me to import and export the theme without taking 15 minutes and done in under 30 seconds.

Would appriciate your responses.

Hi @Muhammed_Qasim,

You can certainly use the GraphQL Admin API to request all the themes on the store in a single query, with the themes query.

You can then also import, update, and publish themes via the API as well, with the following mutations.

Please also do be aware that in order to use these Mutations to import and update themes, you do need explicit permission by Shopify to use the scopes required. In the documenation I linked above, there is a link to the exemption request form you need to fill out and submit to get this permission.