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:
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
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.
