# Rename Key Where Value Equal Rename a key where the value is equal to a specified value. ### Example This example shows how to use the RenameKeyWhereValueEq transformation to rename a key if the value equals a specified value. ```json { "operation": "rename_key_where_value_eq", "arguments": { "key": "old_key", "value": "target_value", "new_key": "new_key" } } ``` Given the input record where the value matches: ```json { "old_key": "target_value", "another_field": "another_value" } ``` The output record will be: ```json { "new_key": "target_value", "another_field": "another_value" } ``` Given the input record where the value does not match: ```json { "old_key": "different_value", "another_field": "another_value" } ``` The output record will be unchanged: ```json { "old_key": "different_value", "another_field": "another_value" } ```