Ostorya dev docs

Admin API/Online store/Mutations

themeCreate

mutation

Adds 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

languageStringOstorya extension
Shop language for the theme's texts, buttons and form: fr (default) or ar (right to left).
nameString
sourceString!required

Payload

userErrors[UserError!]!required