Notionの開発者向け変更履歴(11月24日付)によると、ページのMarkdown A simple way of formatting text with symbols, such as # for headings and - for bullet points, that apps turn into styled text.を更新するエンドポイントで、「## Action items」のような見出しなど指定したブロックの直前・直後に新しい内容を挿入できるようになった。これまでの文字列一致による方法は非推奨となった(Notion Developers Changelog A dated list of what changed in each new version of an app, published by the company that makes it.)。
ポイント
- 何が変わったか:insert_contentで、after_contentまたはbefore_contentのpositionとアンカー(例:見出し「## Action items」)を指定できるようになった。新しい内容は、アンカーに一致したブロックの隣に、同じ階層で挿入される(Notion Developers changelog)。
- 非推奨になったもの:省略記号で文字列を照合する従来のinsert_content.afterパラメーターは非推奨となり、連携は新しいposition設定へ移行すべきだ。insert_content自体はレガシー扱いではなくなった(Notion Developers changelog)。
- 条件:アンカー指定はmarkdown_version「v2」でのみ動作する。公式JavaScript SDK A ready-made toolbox of code that a company gives developers so they can build things on top of its product, like custom blocks in Notion.の@notionhq/client 5.32.0が新しい指定に対応し、古いパラメーターを非推奨と表示する(Notion Developers changelog)。
なぜ重要か: スクリプトや自動化、AIエージェントでNotionページにメモやタスクを追加しているなら、ページ全体を書き換えずに正しい場所へ書き込みやすくなる。古い「after」を使っている連携を確認し、削除される前に切り替えを計画しよう。
情報源(1)
- Changelog: November 24, 2026 - Insert markdown next to a block · Notion Developers





