---
title: "inserts an empty column in an existing table"
method: POST
path: "/api/notebook/insertEmptyTableColumn"
---

# inserts an empty column in an existing table

`POST /api/notebook/insertEmptyTableColumn`

inserts an empty column in an existing table

## Query parameters

- `notebookId` string, required

## Request body

- object
  - `tableId` string, required — the id of the table you want to insert a column into
  - `columnName` string, required — the name of the new column. Must contain no spaces or weird characters

## Response `200`

Ok

- object
  - `result` unknown
  - `notebookErrors` unknown[]
    - unknown

## Changes

- **2023-11-27** `c2d57e621a13` — 4 breaking, 2 info
  - the request property `columnName` became required
  - the request property `tableId` became required
  - the `columnName` request property type changed from no type to `string`
  - the `tableId` request property type changed from no type to `string`
  - …2 more
- **2023-11-20** `ee7eb73634d2` — 3 warning, 1 info
  - deleted the `query` request parameter `columnName`
  - deleted the `query` request parameter `tableId`
  - removed the optional property `result` from the response with the `200` status
  - added optional request body
- **2023-11-19** `35c27bb79744` — 3 warning, 2 info
  - removed the optional property `createdElementId` from the response with the `200` status
  - removed the optional property `createdElementName` from the response with the `200` status
  - removed the optional property `createdElementType` from the response with the `200` status
  - added the optional property `notebookErrors` to the response with the `200` status
  - …1 more
- **2023-10-27** `f8c8d4256dda` — 3 breaking, 2 warning, 4 info
  - added the new required `query` request parameter `columnName`
  - added the new required `query` request parameter `tableId`
  - removed the request body
  - removed the optional property `notebookErrors` from the response with the `200` status
  - …5 more

[Change history](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook/changes/api/notebook/insertEmptyTableColumn/post.md)

---

[API](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook.md) · [All operations](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decipad/create-and-modify-a-decipad-notebook/revisions/5f77d79b504f/schema)
