> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.utils.csv.RenameColumn

- Component: `appmixer.utils.csv.RenameColumn`
- Kind: Action
- Version: 1.1.1
- Visibility: Public
- Connector: [appmixer.utils.csv 2.0.9](https://connectors.appmixer.com/connector/appmixer.utils.csv/2.0.9.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.utils.csv/2.0.9/component/appmixer.utils.csv.RenameColumn>

Rename a column in a CSV file.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| File ID (`fileId`) | filepicker | The ID of the file. |
| Delimiter (`delimiter`) | text | A character to use as a delimiter between columns. |
| Column name (`columnName`) | text | Name of the column to be renamed. |
| New name (`newColumnName`) | text | New name of the column. |

## Output ports

### Port `fileId`

| Field | Type | Description |
| --- | --- | --- |
| `fileId` | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.csv.RenameColumn",
  "author": "Camilo Manrique <camilo@client.io>",
  "description": "Rename a column in a CSV file.",
  "private": false,
  "version": "1.1.1",
  "dependencies": {
    "module": "1.0.1"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "properties": {
          "fileId": {},
          "delimiter": {
            "type": "string"
          },
          "columnName": {
            "type": "string"
          },
          "newColumnName": {
            "type": "string"
          }
        },
        "required": [
          "fileId",
          "delimiter",
          "columnName",
          "newColumnName"
        ]
      },
      "inspector": {
        "inputs": {
          "fileId": {
            "type": "filepicker",
            "label": "File ID",
            "index": 1,
            "tooltip": "The ID of the file."
          },
          "delimiter": {
            "type": "text",
            "label": "Delimiter",
            "index": 2,
            "defaultValue": ",",
            "tooltip": "A character to use as a delimiter between columns."
          },
          "columnName": {
            "type": "text",
            "label": "Column name",
            "tooltip": "Name of the column to be renamed.",
            "index": 3
          },
          "newColumnName": {
            "type": "text",
            "label": "New name",
            "index": 4,
            "tooltip": "New name of the column."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "fileId",
      "options": [
        {
          "label": "fileId",
          "value": "fileId",
          "schema": {
            "type": "string",
            "example": "a1686006-35c8-4ffc-b23e-d687858cd418"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
