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.comments.update({
comment_id: "c02fc1d3-db8b-45c5-a222-27595b15aea7",
rich_text: [{ text: { content: "Updated comment text" } }]
}){
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Updates a comment by its comment_id.
import { Client } from "@notionhq/client"
const notion = new Client({ auth: process.env.NOTION_API_KEY })
const response = await notion.comments.update({
comment_id: "c02fc1d3-db8b-45c5-a222-27595b15aea7",
rich_text: [{ text: { content: "Updated comment text" } }]
}){
"object": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Returns a comment object for the updated comment. A connection can only update comments that it created. Attempting to update a comment created by another user or connection will return a 404 error.Documentation Index
Fetch the complete documentation index at: https://developers.notion.com/llms.txt
Use this file to discover all available pages before exploring further.
rich_text: An array of rich text objects that represent the updated content of the comment.markdown: A Markdown string. Supports inline formatting (bold, italic, strikethrough, inline code, links), inline equations, and mentions.rich_text or markdown must be provided. Providing both or neither will return a validation error.
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 The ID of the comment to update.
An array of rich text objects that represent the updated content of the comment.
100Show child attributes