Skip to main content

publishStorefrontTheme

Requires permission storefront:storefront:publish.

Publish the saved storefront draft: it is checked, frozen as the next version, and buyers see it. Refused, with every reason, when it would not draw; refused with VERSION_CONFLICT when expectedUpdatedAt is given and the draft was saved since.

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 PublishStorefrontTheme {
publishStorefrontTheme {
id
number
publishedByName
publishedAt
}
}

Response:

{
"data": {
"publishStorefrontTheme": {
"id": "id",
"number": 0,
"publishedByName": "string",
"publishedAt": "2025-01-15T00:00:00Z"
}
}
}
publishStorefrontTheme(
expectedUpdatedAt: DateTime
): StorefrontThemeVersionSummary!

Arguments​

publishStorefrontTheme.expectedUpdatedAt ● DateTime scalar​

The stored draft's updatedAt as the editor saved it: publishing is refused when the draft was saved since.

Type​

StorefrontThemeVersionSummary object​

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