createPage: Create a page in Notion.

Description Usage Arguments Value Examples

Description

This function facilitates basic page creation in Notion. Create one or more blocks using createTextBlock or a similar function and pass as unnamed arguments to create a page with content. Returns a list object representing a Notion page block. To publish automatically, set postPage = TRUE.

Usage

1

Arguments

page_id

Character string. The Notion page id or URL for the parent page of your new page.

title

Character string. The title of your new page.

postPage

Boolean. If set to TRUE, the final page block will be posted to Notion.

...

Data frame representing Notion content to add to page. May accept multiple blocks.

Value

List object representing a Notion page block.

Examples

1
2
3
newParagraphBlock <- createTextBlock("paragraph", "This is a new paragraph block")
page_id = "31d8db33bxyxy8d09xyxyb42758886ef"
## Not run: createPage(page_id, "My new page title", newParagraphBlock)

burrowsdt/r2notion documentation built on Jan. 5, 2022, 4:10 p.m.