---
title: "Changes the text in a text element"
method: POST
path: "/api/notebook/changeText"
---

# Changes the text in a text element

`POST /api/notebook/changeText`

Changes the text in a text element

## Query parameters

- `notebookId` string, required

## Request body

- object
  - `elementId` string, required — the id of the text element you want to change
  - `newText` string, required — the new content of the text element

## Response `200`

Ok

## Changes

> 8 revisions in range; 1 could not be searched.

- **2023-11-27** `c2d57e621a13` — 4 breaking, 1 info
  - the request property `elementId` became required
  - the request property `newText` became required
  - the `elementId` request property type/format changed from ``/`` to `string`/``
  - the `newText` request property type/format changed from ``/`` to `string`/``
  - …1 more
- **2023-11-20** `ee7eb73634d2` — 2 breaking, 2 info
  - the `elementId` request property type/format changed from `string`/`` to ``/``
  - the `newText` request property type/format changed from `string`/`` to ``/``
  - the request property `elementId` became optional
  - the request property `newText` became optional
- **2023-11-19** `35c27bb79744` — 1 info
  - added the media type `application/json` for the response with the status `200`
- **2023-10-27** `f8c8d4256dda` — 1 breaking, 1 info
  - removed the media type `application/json` for the response with the status `200`
  - api operation id `changeText` was added

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