Pages & Spaces
insertContent
Insert Page Content
Insert markdown into a page at a chosen anchor: additively, without replacing anything.
Arguments
contentstringrequiredMarkdown to insert: becomes its own blocks (headings, lists, paragraphs, tables all supported).matchstringoptionalFor afterHeading: the heading's text. For beforeBlock or afterBlock: text the target block contains. Omit only for pageStart.pageIdstringrequiredThe page ID to insert intopositionstringrequiredWhere to place the content: pageStart (top of page), afterHeading (right after a heading), beforeBlock or afterBlock (relative to a block matched by its text).
Returns
If the anchor is not found, it returns the headings the page actually has so you can retry.
Ask for it
The Cloud routes these requests to this verb.
- insert after the X heading
- add a line before Y
- slot this into the page
- put this at the top
Pair it with
The verbs that finish the job.