Skip to main content
mutation

Requires The user needs write_themes and an exemption from Shopify to modify themes. If you think that your app is eligible for an exemption and should have access to this API, then you can submit an exception request.

Creates a theme from an external URL or staged upload. The theme source can either be a ZIP file hosted at a public URL or files previously uploaded using the stagedUploadsCreate mutation. The theme displays in the Themes page in the Shopify admin.

New themes have an UNPUBLISHED role by default. You can optionally specify a DEVELOPMENT role for temporary themes used during development.

String

The name of the theme to be created.

ThemeRole
Default: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.


Was this section helpful?

Anchor to ThemeCreatePayload returnsThemeCreatePayload returns

OnlineStoreTheme

The theme that was created.

[ThemeCreateUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?