Read Theme Edits Directly with the New RolloutThemeEditChange API

Shopify’s latest Rollouts API addition lets apps read theme‑draft edits without publishing changes. Learn what the RolloutThemeEditChange type does, who it impacts, and how to integrate it today.

Read Theme Edits Directly with the New RolloutThemeEditChange API
8 sections

Shopify merchants love the flexibility of theme drafts, and developers love the ability to test changes on a subset of buyers. The new "Theme‑edit changes" addition to the Rollouts API bridges those worlds by exposing draft edits through a read‑only GraphQL type called RolloutThemeEditChange.

What’s New?

Developers can now query a rollout treatment’s changes and receive detailed objects that represent theme‑draft edits. The type implements both RolloutChange and RolloutThemeChange interfaces, exposing three key fields: id, theme (the draft being edited), and applyResult (the outcome of the edit when applied to the buyer’s experience).

These changes are read‑only, meaning they don’t alter the store’s live theme. They simply surface what a buyer would see if the treatment is active, giving apps the power to audit, report, or trigger downstream workflows based on those edits.

Who Is Affected?

• Developers building custom apps or extensions that rely on rollout data now have a reliable source for theme‑draft information.

• Merchants aren’t directly interacting with this API, but they benefit indirectly because apps can now surface draft‑preview insights, alert them to potential design conflicts, or automate roll‑out validation before a full publish.

How to Query Theme‑Edit Changes

The following GraphQL query demonstrates the recommended pattern. Replace $treatmentId with the ID of the rollout treatment you’re inspecting.

graphql

query GetRolloutThemeEdits($treatmentId: ID!) {

rolloutTreatment(id: $treatmentId) {

changes {

... on RolloutThemeEditChange {

id

theme {

id

name

}

applyResult {

status

message

}

}

}

}

}

The query works with the unstable API version, and you only need the existing read_rollouts scope. No additional permissions are required beyond the theme permissions you already have for reading the affected draft.

Filtering and Searching Made Easy

Shopify also added two convenient filter strings:

  • Treatment‑level filter – Use "type:RolloutThemeEditChange" when querying RolloutTreatment.changes to return only theme‑edit entries.
  • Rollout‑level filter – Use "change_type:RolloutThemeEditChange" on the rollouts query to locate any rollout that contains at least one theme‑edit change.
  • Webhook Compatibility

    If you already subscribe to the Rollout webhook, the payload will now include a new "type": "RolloutThemeEditChange" entry whenever a theme draft is part of the treatment. Because the webhook uses the same unstable version, you don’t need to adjust scopes, but you should update your payload parsing logic to handle the new object shape.

    Action Checklist for Developers

  • Enable the unstable API version in your app’s GraphQL client (e.g., "2024-10" or the latest unstable tag).
  • Add read_rollouts to your app’s OAuth scopes if it isn’t already present.
  • Update any rollout‑related queries to include the "type:RolloutThemeEditChange" filter when you only need theme edits.
  • Extend your webhook handler to recognize the new change type and map the id, theme, and applyResult fields to your internal data model.
  • Test against a draft theme – Create a rollout treatment that points to a theme draft, make a couple of edits, and verify the API returns the expected objects.
  • What Merchants Should Know

    While the API change is developer‑focused, merchants benefit from faster feedback loops. Apps can now surface a “preview audit” report that lists every theme edit a buyer in a treatment would see, flagging missing assets or layout issues before a full rollout.

    If you rely on an agency or a custom app for A/B testing, ask them to verify that the new endpoint is integrated. This ensures you’ll continue receiving accurate rollout data after the next Shopify platform update.

    Conclusion & Next Steps

    The RolloutThemeEditChange type unlocks visibility into theme‑draft edits without publishing them, giving developers a safer way to audit, report, and automate rollout strategies. By updating your queries, scopes, and webhook handlers today, you’ll be ready to deliver richer, more reliable experiences to merchants and their shoppers.

    Ready to integrate? Jump into the Shopify Dev Docs, fire up a test query, and let your app start reading theme edits instantly. If you need help, reach out in the Shopify Community or drop a comment below—let’s keep your store’s experiments both powerful and painless.

    Tags
    Sources

    Related Articles

    New Shopify App Security Protections: What Developers and Merchants Must Do Now

    New Shopify App Security Protections: What Developers and Merchants Must Do Now

    Shopify’s latest app‑security updates introduce auto‑pausing of inactive custom apps, mandatory network‑access declarations, and expiring offline tokens. Learn who’s affected, what’s changing, and the exact steps you need to take before the Dec 8, 2026 and Jan 1, 2027 deadlines.

    December 3, 20265 min
    Edit Manual Order‑Level Discounts Directly During an Order Edit

    Edit Manual Order‑Level Discounts Directly During an Order Edit

    Shopify’s 2027‑01 API now lets apps add, update, and remove manual order‑level discounts while editing an order, giving developers finer control and merchants a smoother discount workflow.

    December 3, 20263 min
    Secure WebSocket Support in allowed_sources: What Shopify Developers Need to Know

    Secure WebSocket Support in allowed_sources: What Shopify Developers Need to Know

    Shopify now lets apps declare secure WebSocket endpoints in shopify.app.toml. Learn what changed, who’s affected, and how to update your app configuration for seamless real‑time integrations.

    December 3, 20264 min
    Pull Your App’s Logs Directly in the Terminal with Shopify CLI 5.2

    Pull Your App’s Logs Directly in the Terminal with Shopify CLI 5.2

    Shopify CLI 5.2 adds a powerful shopify app logs command that lets developers and merchants fetch historical webhook, API, and Function logs right from their terminal. Learn what changed, who it affects, and how to start using it today.

    December 2, 20263 min