> 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/renameattribute.md).

# RenameAttribute

Rename specified key in input data

Subclass of [**Action**](/core/action.md). Type: [**Action**](/core/action.md)**\[Dict\[str, 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;">**old\_name**</mark>**&#x20;(str):** Current name.
* <mark style="color:orange;">**new\_name**</mark>**&#x20;(str):** New name.
* <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>

Rename key

#### Arguments:

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

#### Raises:

* **InputDataKeyError:** Key for renaming doesn't exist.

#### Returns:

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

***

***
