---
title: "Ensure column names are unique"
method: POST
path: "/dataset/{handle}/rename-columns-to-unique"
tags: ["data"]
---

# Ensure column names are unique

`POST /dataset/{handle}/rename-columns-to-unique`

## Request

- Base URL: `//api.gigasheet.com` (relative, and the document’s source URL is not known)
- URL: `//api.gigasheet.com/dataset/{handle}/rename-columns-to-unique`
- Auth: API key in header `X-GIGASHEET-TOKEN`
- TypeScript: <https://skmtc.dev/freshdesk/apis/gigasheet-api/docs/dataset/:handle/rename-columns-to-unique/post.ts> (a function with typed inputs; its response is checked against the schema)

Renames the columns in the sheet if needed, ensuring that all columns end up with unique names. Preserves original names of columns when possible if they are already unique.

## Path parameters

- `handle` string, required

## Response `200`

OK

- unknown

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal Server Error

---

[API](https://skmtc.dev/freshdesk/apis/gigasheet-api.md) - [All operations](https://skmtc.dev/freshdesk/apis/gigasheet-api/llms.txt) - [OpenAPI document](https://skmtc.dev/freshdesk/apis/gigasheet-api/revisions/d1e5cbb24557?raw)
