Online Store Theme
Requires access scope.
A theme for display on the storefront.
Anchor to Fields and connectionsFields and connections
- Anchor to createdAtcreated•Date
At Time!non-null The date and time when the theme was created.
- Anchor to filesfiles•Online
Store Theme File Connection The files in the theme.
- •ID!non-null
A globally-unique ID.
- Anchor to namename•String!non-null
The name of the theme, set by the merchant.
- Anchor to prefixprefix•String!non-null
The prefix of the theme.
- Anchor to processingprocessing•Boolean!non-null
Whether the theme is processing.
- Anchor to processingFailedprocessing•Boolean!non-null
Failed Whether the theme processing failed.
- Anchor to rolerole•Theme
Role!non-null The role of the theme.
- Anchor to themeStoreIdtheme•Int
Store Id The theme store ID.
- Anchor to translationstranslations•[Translation!]!non-null
The published translations associated with the resource.
- Anchor to updatedAtupdated•Date
At Time!non-null The date and time when the theme was last updated.
Anchor to QueriesQueries
- •query
Returns a particular theme for the shop.
- •query
Returns a paginated list of themes for the shop.
Anchor to MutationsMutations
- •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.
- Anchor to namename•String
The name of the theme to be created.
- Anchor to rolerole•Theme
RoleDefault:UNPUBLISHED The role of the theme to be created. Only UNPUBLISHED and DEVELOPMENT roles are permitted.
- Anchor to sourcesource•URL!required
An external URL or a staged upload URL of the theme to import.
Arguments
- Anchor to themetheme•Online
Store Theme The theme that was created.
- Anchor to userErrorsuser•[Theme
Errors Create User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Publishes a theme.
- •ID!required
ID of the theme to be published.
Arguments
- Anchor to themetheme•Online
Store Theme The theme that was published.
- Anchor to userErrorsuser•[Theme
Errors Publish User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Updates a theme.
- •ID!required
The ID of the theme to be updated.
- Anchor to inputinput•Online
Store Theme Input!required The attributes of the theme to be updated.
Arguments
- Anchor to themetheme•Online
Store Theme The theme that was updated.
- Anchor to userErrorsuser•[Theme
Errors Update User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields