> For the complete documentation index, see [llms.txt](https://utca.knowledgator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://utca.knowledgator.com/base-actions/nesttokey.md).

# NestToKey

Nest input data to specified key

Subclass of [**Action**](/core/action.md). Type: [**Action**](/core/action.md)**\[Any, Dict\[str, Any]].**

## Module: [core](/framework-structure.md#core)

## Methods and properties

Main methods and properties

***

### <mark style="color:blue;">\_\_init\_\_</mark>

#### Arguments:

* <mark style="color:orange;">**key**</mark>**&#x20;(str):** Key to unpack (associated value should be of type Dict\[str, Any]).
* <mark style="color:orange;">**name**</mark>**&#x20;(Optional\[str], optional):** Name for identification. If equals to None, class name will be used. Defaults to None.

***

### <mark style="color:blue;">execute</mark>

Nest input data to specified key

#### Arguments:

* <mark style="color:orange;">**input\_data**</mark>**&#x20;(Any):** Current data.

#### Returns:

* **Dict\[str, Any]:** Updated data.

***

***
