---
title: "Update Column Names"
method: POST
path: "/api/new_mdm/update_column_names"
tags: ["MDM NEW"]
---

# Update Column Names

`POST /api/new_mdm/update_column_names`

**Function**: `update_column_names`
**Type**: API Endpoint (POST)

**Purpose**:  
Update column names in a specified table in the customer database.

**URL**:  
`POST /api/new_mdm/update_column_names`

**Request Parameters**:
- `Customer_Key` (Header, required): A base64 encoded string containing `lscode` and `firmcode` for the customer.
- `Table_Name` (Header, required): The name of the table to update.
- `input_data` (JSON Body, required): An array of column name change requests, each with `OldName` and `NewName` properties.

**Response**:
A JSON object containing an array of column name change results, each with `old_name`, `new_name`, `status`, and `message` properties.

**Status Codes**:
- 200: Success
- 400: Invalid request or invalid column name
- 500: Internal Server Error

## Headers

- `Customer-Key` string, required
- `Table-Name` string, required

## Request body

- UpdateColumnNameRequest[]
  - `OldName` string, required
  - `NewName` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi.md) · [All operations](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/leapsurgebi/leapsurgeapi/revisions/5a6b1464bfeb/schema)
