---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.3
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/div-action-update-structure.md
  - https://divkit.tech/docs/ru/concepts/divs/2/div-action-update-structure.md
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt

# div-action-update-structure
Set values ​​in a variable of type array or dictionary with different nesting.

## Parameters
| Parameters | Description |
| --- | --- |
| `path` | <p>**string**</p><p>Required parameter.</p><p>Path within an array/dictionary where a value needs to be set. Path format: <li>Each path element is separated by a '/' symbol.</li><li>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.</li><li>The path is read from left to right, each element determines the transition to the next level of nesting.</li>Example path: `key/0/inner_key/1`.</p><p>The value must match the regular expression `^(?!/)(.+)(?<!/)$`.</p><p>Available platforms: Android, iOS, web.</p> |
| `type` | <p>**string**</p><p>Required parameter.</p><p>The value must always be `update_structure`.</p><p>Available platforms: Android, iOS, web.</p> |
| `value` | <p>**object**</p><p>Required parameter.</p><p>Value set into dictionary/array.</p><p>The value has the type `div-typed-value`.</p><p>Available platforms: Android, iOS, web.</p><p>List of possible values:<li>[string_value](string_value.md#string_value)</li><li>[integer_value](integer_value.md#integer_value)</li><li>[number_value](number_value.md#number_value)</li><li>[color_value](color_value.md#color_value)</li><li>[boolean_value](boolean_value.md#boolean_value)</li><li>[url_value](url_value.md#url_value)</li><li>[dict_value](dict_value.md#dict_value)</li><li>[array_value](array_value.md#array_value)</li></p> |
| `variable_name` | <p>**string**</p><p>Required parameter.</p><p>Variable name of array or dictionary type.</p><p>Available platforms: Android, iOS, web.</p> |

<details>
<summary>JSON</summary>

```json
{
  type*: "update_structure",
  path*: "string",
  value*: div-typed-value,
  variable_name*: "string"
}
```
</details>
