Admin API/Online store/Mutations
themeSettingsUpdate
mutationOstorya extensionSaves 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
Payload
- themeOnlineStoreTheme
- userErrors[UserError!]!required