Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Notion connection the step signs in with. |
| Block idRequired | text |
| New content | "text" or "json" |
| Kind of block | It has to be the kind the block already is — Notion cannot change that. |
| Text | text |
| Ticked | true/false |
| Block body (JSON) | An object keyed by the block's own type. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `notion`) |
blockId | textits `{{ }}` 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" |
text | textused when `bodyFormat` is "text" |
checked | true/false, by default falseused when `blockType` is "to_do" |
bodyJson | textused when `bodyFormat` is "json" |
Output
| Field | Type |
|---|---|
blockId | string |
block | object |
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
}