Admin API/Online store/Mutations
themeCreate
mutationAdds a theme from the catalog to the shop with its default pages. The first theme becomes the live one.
Returns ThemeCreatePayload!
mutation ThemeCreate($source: String!) {
themeCreate(source: $source) {
theme {
id
name
previewUrl
publishedAt
role
settingsData
}
userErrors {
code
message
field
}
}
}
# Variables
{
"source": ""
}Arguments
Payload
- themeOnlineStoreTheme
- userErrors[UserError!]!required