rename_data_table_row
Rename a DataTable row key while copying its value byte-exact, then save and verify the swap. Use overwrite to replace an existing key; references to the old name are not updated.
Instructions
Rename a DataTable row key, copying its value byte-exact (safer than delete plus re-add, which can drop GameplayTags), then save and verify the swap (new_exists, old_removed). Refuses a case-only rename, and an existing new_name unless overwrite=true. Row handles that reference the old name are not updated.
Returns: { table_path, old_name, new_name, row_struct, success, overwrote_existing, new_exists, old_removed, saved, row_count }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | New row key (error if it already exists unless overwrite=true) | |
| old_name | Yes | Existing row key to rename (error if it does not exist) | |
| overwrite | No | When true, allow new_name to replace an existing row; when false (default) a pre-existing new_name is an error | |
| data_table | No | Alias of table_path (the DataTable asset path, e.g. "/Game/Data/DT_Items"); table_path wins when both are given | |
| table_path | No | Full asset path of the DataTable (data_table also accepted) |