Theme API

Type

ThemeSettingInfo1

One theme setting, string or media param of a shop, with its saved value, default and the value in effect.

Kind Type
Used in ListShopMedia1, ListShopStrings1, ListShopStyles1

Properties

  • key string required

    The key, such as banner.title.string, tier.1086983a00000123.hero.image or a built-in string key. Its end names its type.

  • type string required

    string, para, url, html, image, video, color, style, size, corner-radius, box-shadow, aspect, objectpos, css and others.

  • block string optional

    The theme block group a theme setting belongs to: a kind of block, or the ID of one block.

  • source string optional

    Where it lives: theme (a theme setting), legacy (an override of a built-in string) or entity (a field of a tier, reward, way to earn or similar).

  • value any optional

    What is saved under this key; absent when nothing is.

  • is_set boolean optional

    Whether a value is saved.

  • default any optional

    What applies when nothing is saved. {other.key} refers to another setting.

  • in_effect any optional

    The value customers see now.

  • in_effect_from string optional

    The key in_effect comes from, when that is another key.

  • hint string optional

    What the setting is for, when the block says.

  • options array of object optional

    Choices for enums and presets: value and label.

  • url string optional

    The file URL of a set image or video.

  • size integer optional

    The file size in bytes; absent when unknown.

  • read_only_base boolean optional

    The base text belongs to a tier, reward, way to earn or similar and is changed where that is configured; its translations can be changed with UpdateShopStrings1.

  • translations object optional

    Saved translations of a string, by language.

  • untranslated array of string optional

    Languages that still need a translation of this string.

Previous
ThemeSettingChange1