PayNow

UpdateWebstoreTemplateVariableDto

namestringOptional
The label shown for the variable in the editor.
typeenumOptional
Specifies how a template variable's 'value' is interpreted when the template renders.
Possible enum values
  • invalid

    No type specified. This value is typically used as a default or uninitialized state.

  • string

    The value is used as plain text.

  • html

    The value is inserted as raw HTML without escaping.

  • number

    The value is parsed as a number.

  • boolean

    The value is parsed as a boolean; 'true' is true, anything else is false.

  • json

    The value is parsed as a JSON document.

valuestringOptional
The value of the variable, always stored as a string and parsed according to 'type' when the template renders.
variablestringOptional
The name the template's files reference the value by.
Example
{
  "name": "string",
  "type": "invalid",
  "value": "string",
  "variable": "string"
}