FlowmageDocs

Archive or restore page

BetaChanges data

Moves a Notion page to the trash, or brings it back.

Settings

SettingWhat it is
ConnectionRequiredThe Notion connection the step signs in with.
Page idRequiredtext
Bring it back insteadNotion keeps a trashed page for 30 days, so a restore works inside that month.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `notion`)
pageIdtextits `{{ }}` must give a string
restoretrue/false, by default false

Output

FieldType
pageIdstring
inTrashIt is in the trashboolean
Sample output, and the expression for each field
  • inTrashtrue
  • pageId"1a2b3c4d"

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": {
    "connection": "<connection id>",
    "pageId": "<page id>",
    "restore": false
  },
  "label": "Archive or restore page",
  "type": "notion.archivePage",
  "version": 1
}