Picture of the author

Notion Blocks

Add Blocks

Appending Blocks

Blocks can be appended to the end of the page using the append method. This method takes a single argument, which is the block to append.

use FiveamCode\LaravelNotionApi\Entities\Blocks\Paragraph;

# The parent block is in this case the UUID of a Notion Page
$parentBlockId = 'f7a7c7f7-7f7f-7f7f-7f7f-7f7f7f7f7f7f';

$newBlock = Paragraph::create("New TextBlock");
Notion::block($parentBlockId)->append($newBlock);
Previous
Fetch Blocks