patchAppendBlocks: Append blocks to a published block or a page.

Description Usage Arguments Value Examples

View source: R/patchAppendBlocks.R

Description

Append block objects to published blocks/pages. Pass blocks as individual unnamed arguments. This function will format and send the PATCH request to Notion. Although you can append multiple blocks at once, the destinaton (parent) block must be the same for all appending blocks.

Usage

1
patchAppendBlocks(content_id, ...)

Arguments

content_id

Character string. The Notion id or URL for the parent block to append to.

...

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

Value

httr2 response

Examples

1
2
3
testBlock1 <- createTextBlock("paragraph", "My first test block")
testBlock2 <- createTextBlock("quote", "Another test block")
## Not run: patchAppendBlocks(page_id, testBlock1, testBlock2)

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