Skip to main content
object

Requires read_themes access scope.

A theme for display on the storefront.

Anchor to Fields and connectionsFields and connections

•DateTime!non-null

The date and time when the theme was created.

•OnlineStoreThemeFileConnection

The files in the theme.

•ID!non-null

A globally-unique ID.

•String!non-null

The name of the theme, set by the merchant.

•String!non-null

The prefix of the theme.

•Boolean!non-null

Whether the theme is processing.

•Boolean!non-null

Whether the theme processing failed.

•ThemeRole!non-null

The role of the theme.

•Int

The theme store ID.

•[Translation!]!non-null

The published translations associated with the resource.

•DateTime!non-null

The date and time when the theme was last updated.


Was this section helpful?

•query

Returns a particular theme for the shop.

•query

Returns a paginated list of themes for the shop.


Was this section helpful?

•mutation

Creates a theme using an external URL or for files that were previously uploaded using the stagedUploadsCreate mutation. These themes are added to the Themes page in Shopify admin.

Arguments

•String

The name of the theme to be created.

•ThemeRoleDefault:UNPUBLISHED

The role of the theme to be created. Only UNPUBLISHED and DEVELOPMENT roles are permitted.

•URL!required

An external URL or a staged upload URL of the theme to import.


Fields

•OnlineStoreTheme

The theme that was created.

•[ThemeCreateUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Publishes a theme.

Arguments

•ID!required

ID of the theme to be published.


Fields

•OnlineStoreTheme

The theme that was published.

•[ThemePublishUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Updates a theme.

Arguments

•ID!required

The ID of the theme to be updated.

•OnlineStoreThemeInput!required

The attributes of the theme to be updated.


Fields

•OnlineStoreTheme

The theme that was updated.

•[ThemeUpdateUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?


Was this section helpful?
OSZAR »