See all services Shopify Plus Partner
API Developer

Streamline Theme Management with themeDuplicate Mutation

Learn how the themeDuplicate mutation in Shopify's GraphQL Admin API optimizes theme management for Shopify Plus merchants.

Executive summary:

What changed

The GraphQL Admin API now includes the themeDuplicate mutation. This allows developers to duplicate existing store themes by providing the original theme's ID. An optional name parameter can specify a different name for the duplicated theme.

Why it matters

For Shopify Plus merchants, the ability to conveniently duplicate themes accelerates the workflow for seasonal promotions or A/B testing different storefront elements. This flexibility enhances efficiency and reduces manual workload.

Role-specific impact

Use-case example

Real-world scenario & metric

An enterprise fashion retailer plans to launch a winter sale, requiring a new theme with festive designs. Using the themeDuplicate mutation, their developer quickly duplicates the current theme and makes adjustments, reducing launch time by 50% when compared to building a new theme from scratch.

Implementation checklist

  1. Access theme IDs from the Shopify store admin or API call.
  2. Create a GraphQL mutation using themeDuplicate with desired ID and new name.
  3. Run the mutation through Shopify's GraphQL client or console.
  4. Verify the duplication in the Themes section of Shopify admin.

FAQ

Q: Do I need special permissions to use themeDuplicate?
A: Yes, you need write_themes permission and an exemption from Shopify.

Q: Can I rename the duplicated theme?
A: Yes, an optional name parameter allows renaming during duplication.

Resources

Explore more in the themeDuplicate documentation.

Need guidance? Talk to Makro.