FlowmageDocs

Update block

BetaChanges data

Rewrites one block on a Notion page.

Settings

SettingWhat it is
ConnectionRequiredThe Notion connection the step signs in with.
Block idRequiredtext
New content"text" or "json"
Kind of blockIt has to be the kind the block already is — Notion cannot change that.
Texttext
Tickedtrue/false
Block body (JSON)An object keyed by the block's own type.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `notion`)
blockIdtextits `{{ }}` must give a string
bodyFormat"text" or "json", by default "text"
blockType"paragraph" or "heading_1" or "heading_2" or "heading_3" or "to_do" or "quote", by default "paragraph"used when `bodyFormat` is "text"
texttextused when `bodyFormat` is "text"
checkedtrue/false, by default falseused when `blockType` is "to_do"
bodyJsontextused when `bodyFormat` is "json"

Output

FieldType
blockIdstring
blockobject
Sample output, and the expression for each field
  • block
    • object"block"
  • blockId"9f8e7d6c"

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "blockId": "<block id>",
    "blockType": "paragraph",
    "bodyFormat": "text",
    "bodyJson": "",
    "checked": false,
    "connection": "<connection id>",
    "text": ""
  },
  "label": "Update block",
  "type": "notion.updateBlock",
  "version": 1
}