---
title: "inserts a calculated column to an existing table"
method: POST
path: "/api/notebook/insertFormulaTableColumn"
---

# inserts a calculated column to an existing table

`POST /api/notebook/insertFormulaTableColumn`

inserts a calculated column to an existing table

## Query parameters

- `notebookId` string, required

## Request body

- object
  - `tableId` string, required — the id of the table element
  - `columnName` string, required — the name of the new column. Must contain no spaces or weird characters
  - `formula` string, required — the Decipad language formula for this new column

## Response `200`

Ok

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

## Changes

- **2023-11-27** `c2d57e621a13` — 6 breaking, 2 info
  - the request property `columnName` became required
  - the request property `formula` became required
  - the request property `tableId` became required
  - the `columnName` request property type/format changed from ``/`` to `string`/``
  - …4 more
- **2023-11-20** `ee7eb73634d2` — 3 breaking, 1 warning
  - the `columnName` request property type/format changed from `string`/`` to ``/``
  - the `formula` request property type/format changed from `string`/`` to ``/``
  - the `tableId` request property type/format changed from `string`/`` to ``/``
  - removed the optional property `result` from the response with the `200` status
- **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` — 2 warning, 7 info
  - removed the optional property `notebookErrors` from the response with the `200` status
  - removed the optional property `result` from the response with the `200` status
  - api operation id `insertFormulaTableColumn` was added
  - the request property `columnName` became optional
  - …5 more

[Change history](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook/changes/api/notebook/insertFormulaTableColumn/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)
