Skip to main content

rollbackStorefrontTheme

Requires permission storefront:storefront:publish.

Point the storefront at an earlier published version, so buyers see it again. The version is checked again first.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation RollbackStorefrontTheme($versionId: ID!) {
rollbackStorefrontTheme(versionId: $versionId) {
id
number
publishedByName
publishedAt
}
}

Variables:

{
"versionId": "id"
}

Response:

{
"data": {
"rollbackStorefrontTheme": {
"id": "id",
"number": 0,
"publishedByName": "string",
"publishedAt": "2025-01-15T00:00:00Z"
}
}
}
rollbackStorefrontTheme(
versionId: ID!
): StorefrontThemeVersionSummary!

Arguments​

rollbackStorefrontTheme.versionId ● ID! non-null scalar​

The ID of the theme version.

Type​

StorefrontThemeVersionSummary object​

A published version of the storefront theme. Immutable: rolling back points the store at an older one.