---
title: "Update variable name"
method: PATCH
path: "/dataTables/{data_table_id}/variableNames"
tags: ["DataTable"]
---

# Update variable name

`PATCH /dataTables/{data_table_id}/variableNames`

Update an existing variable's name and apply it to all scenarios in the DataTable

## Path parameters

- `data_table_id` string, required

## Request body

- VariableNamesUpdateRequest
  - `name` string — Current variable name
  - `new_name` string — The updated variable name

## Response `200`

The current variable names

- string[]

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `default` — Unknown error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
