Ostorya dev docs

Admin API/Online store/Mutations

themeSettingsUpdate

mutationOstorya extension

Saves the theme's global settings (colors, font, roundness…).

Returns ThemeSettingsUpdatePayload!

mutation ThemeSettingsUpdate($settings: JSON!, $themeId: ID!) {
  themeSettingsUpdate(settings: $settings, themeId: $themeId) {
    theme {
      id
      name
      previewUrl
      publishedAt
      role
      settingsData
    }
    userErrors {
      code
      message
      field
    }
  }
}

# Variables
{
  "settings": "",
  "themeId": "gid://ostorya/Theme/0f8c5b1e-…"
}

Arguments

settingsJSON!required
themeIdID!required

Payload

userErrors[UserError!]!required