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:
- GraphQL
- cURL
mutation RollbackStorefrontTheme($versionId: ID!) {
rollbackStorefrontTheme(versionId: $versionId) {
id
number
publishedByName
publishedAt
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation RollbackStorefrontTheme($versionId: ID!) {\n rollbackStorefrontTheme(versionId: $versionId) {\n id\n number\n publishedByName\n publishedAt\n }\n}",
"variables": {
"versionId": "id"
}
}
EOF
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.