Theme API
TypeThemeSettingInfo1
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
-
keystring requiredThe key, such as
banner.title.string,tier.1086983a00000123.hero.imageor a built-in string key. Its end names its type. -
typestring requiredstring,para,url,html,image,video,color,style,size,corner-radius,box-shadow,aspect,objectpos,cssand others. -
blockstring optionalThe theme block group a theme setting belongs to: a kind of block, or the ID of one block.
-
sourcestring optionalWhere it lives:
theme(a theme setting),legacy(an override of a built-in string) orentity(a field of a tier, reward, way to earn or similar). -
valueany optionalWhat is saved under this key; absent when nothing is.
-
is_setboolean optionalWhether a value is saved.
-
defaultany optionalWhat applies when nothing is saved.
{other.key}refers to another setting. -
in_effectany optionalThe value customers see now.
-
in_effect_fromstring optionalThe key
in_effectcomes from, when that is another key. -
hintstring optionalWhat the setting is for, when the block says.
-
optionsarray of object optionalChoices for enums and presets:
valueandlabel. -
urlstring optionalThe file URL of a set image or video.
-
sizeinteger optionalThe file size in bytes; absent when unknown.
-
read_only_baseboolean optionalThe 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. -
translationsobject optionalSaved translations of a string, by language.
-
untranslatedarray of string optionalLanguages that still need a translation of this string.