Home Scripts Plans ReadMe You need to log in --> login

Notion Block Add File

Create a file attachment block on a Notion page or block

Arguments:
- "parent_id" (string - URL of page or data-block-id of block)
- "file" (text - file in JSON format - requires name, type, and base64data properties - same format as html email widgets)

Returns:
string data-block-id of new block

NB: Don't forget to set your headers and use POST (not GET) for the arguments !!!

Try it out

headers:
POST url:
parent_id:
file:
You are not logged in
output: