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

# div-action-dict-set-value
Sets the value in the dictionary by the specified key. Deletes the key if the value is not set.

## Parameters
| Parameters | Description |
| --- | --- |
| `key` | <p>**string**</p><p>Required parameter.</p><p>Available platforms: Android, iOS, web.</p> |
| `type` | <p>**string**</p><p>Required parameter.</p><p>The value must always be `dict_set_value`.</p><p>Available platforms: Android, iOS, web.</p> |
| `variable_name` | <p>**string**</p><p>Required parameter.</p><p>Available platforms: Android, iOS, web.</p> |
| `value` | <p>**object**</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> |

<details>
<summary>JSON</summary>

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