Join us for our Developer Platform Hackathon, May 16-17. Apply now →
import { Client } from "@notionhq/client"
const notion = new Client({ auth: process.env.NOTION_API_KEY })
const response = await notion.blocks.update({
block_id: "c02fc1d3-db8b-45c5-a222-27595b15aea7",
paragraph: {
rich_text: [{ text: { content: "Updated paragraph text" } }]
}
}){
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}import { Client } from "@notionhq/client"
const notion = new Client({ auth: process.env.NOTION_API_KEY })
const response = await notion.blocks.update({
block_id: "c02fc1d3-db8b-45c5-a222-27595b15aea7",
paragraph: {
rich_text: [{ text: { content: "Updated paragraph text" } }]
}
}){
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Updates the content for the specifiedDocumentation Index
Fetch the complete documentation index at: https://developers.notion.com/llms.txt
Use this file to discover all available pages before exploring further.
block_id based on the block type. Supported fields based on the block object type (see Block object for available fields and the expected input for each field).
Note: The update replaces the entire value for a given field. If a field is omitted (ex: omitting checked when updating a to_do block), the value will not be changed.
child_page blocksTo update child_page type blocks, use the Update page endpoint. Updating the page’s title updates the text displayed in the associated child_page block.child_database blocksTo update child_database type blocks, use the Update database endpoint. Updating the page’s title updates the text displayed in the associated child_database block.childrenA block’s children CANNOT be directly updated with this endpoint. Instead use Append block children to add children.type for the block is incorrect or the input is incorrect for a given field.
Returns a 400 or a 429 HTTP response if the request exceeds the request limits.
Note: Each Public API endpoint can return several possible error codes. See the Error codes section of the Status codes documentation for more information.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The API version to use for this request. The latest version is 2026-03-11.
2026-03-11