div-action-update-structure

Set values ​​in a variable of type array or dictionary with different nesting.

Parameters

Parameters Description
path

string

Required parameter.

Path within an array/dictionary where a value needs to be set. Path format:

  • Each path element is separated by a '/' symbol.
  • Path elements can be of two types: an index of an element in an array, starting from 0 or dictionary keys in the form of arbitrary strings.
  • The path is read from left to right, each element determines the transition to the next level of nesting.
  • Example path: key/0/inner_key/1.

    The value must match the regular expression ^(?!/)(.+)(?<!/)$.

    Available platforms: Android, iOS, web.

    type

    string

    Required parameter.

    The value must always be update_structure.

    Available platforms: Android, iOS, web.

    value

    object

    Required parameter.

    Value set into dictionary/array.

    The value has the type div-typed-value.

    Available platforms: Android, iOS, web.

    List of possible values:

  • string_value
  • integer_value
  • number_value
  • color_value
  • boolean_value
  • url_value
  • dict_value
  • array_value
  • variable_name

    string

    Required parameter.

    Variable name of array or dictionary type.

    Available platforms: Android, iOS, web.

    JSON
    {
      type*: "update_structure",
      path*: "string",
      value*: div-typed-value,
      variable_name*: "string"
    }