Rename Keys
core.rename_keys · version 1 · Transform
Rename fields on every item.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| input 0 | main | |||
| output 0 | main |
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
keys | fixed_collection | ||||
keys.currentKey | string | yes | Current Name. Field to rename; a.b addresses nested fields. | ||
keys.newKey | string | yes | New Name. | ||
additionalOptions | collection | Options. | |||
additionalOptions.regexReplacement | fixed_collection | Pattern Rename. | |||
additionalOptions.regexReplacement.searchRegex | string | Pattern. Regular expression matched against each key. | |||
additionalOptions.regexReplacement.replaceRegex | string | Replace With. Replacement; $1 inserts the first captured group. | |||
additionalOptions.regexReplacement.options | collection | ||||
additionalOptions.regexReplacement.options.caseInsensitive | boolean | false | Ignore Case. | ||
additionalOptions.regexReplacement.options.depth | number | -1 | -1 renames at every level, 0 only top-level keys. |
Import
Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.
| Source type | Version range | Status | Fixtures |
|---|---|---|---|
n8n-nodes-base.renameKeys | 1 | unverified |