curl --request POST \
--url 'https://actionkit.useparagon.com/projects/{project_id}/actions/#NOTION_UPDATE_BLOCK' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "NOTION_UPDATE_BLOCK",
"parameters": {
"blockId": "<string>",
"archived": true,
"paragraph": {},
"image": {},
"bookmark": {},
"code": {},
"pdf": {},
"table": {},
"tableOfContent": {},
"additionalFields": {}
}
}
'curl --request POST \
--url 'https://actionkit.useparagon.com/projects/{project_id}/actions/#NOTION_UPDATE_BLOCK' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "NOTION_UPDATE_BLOCK",
"parameters": {
"blockId": "<string>",
"archived": true,
"paragraph": {},
"image": {},
"bookmark": {},
"code": {},
"pdf": {},
"table": {},
"tableOfContent": {},
"additionalFields": {}
}
}
'Your Paragon User Token (JWT), which you can generate using your project's signing keys.
Your Paragon Project ID. You can copy your Project ID from your dashboard URL or by clicking Copy Project ID under the Environment switcher.
Show child attributes
Block ID : Specify the ID of the Block to Update. (example: "9bc30ad4-9373-46a5-84ab-0a7845ee52e6")
Archived : Set to true to archive (delete) a block. Set to false to un-archive (restore) a block.
Paragraph : Paragraph block objects contain the information within the paragraph property see the docs (https://developers.notion.com/reference/block#paragraph). (example: "{ "rich_text":[ { "type":"text", "text":{ "content":"Lacinato kale", "link":null } } ], "color":"default" }")
Image : Image block objects contain a file object (https://developers.notion.com/reference/file-object)detailing information about the image. (example: "{ "type":"external", "external":{ "url":"https://website.domain/images/image.png" } }")
Bookmark : Bookmark block objects contain the following information within the bookmark property see the docs (https://developers.notion.com/reference/block#bookmark) (example: "{ "caption":[], "url":"https://companywebsite.com" }")
Code : Code block objects contain the following information within the code property see the docs (https://developers.notion.com/reference/block#code) (example: "{ "rich_text":[ { "type":"text", "text":{ "content":"const a = 3" } } ], "language":"javascript" }")
PDF : A PDF block object represents a PDF that has been embedded within a Notion page. It contains the following fields see the docs (https://developers.notion.com/reference/block#pdf) (example: "{ "type": "external", "external": { "url": "https://website.domain/files/doc.pdf" } }")
Table : Table block objects are parent blocks for table row children. Table block objects contain the following fields within the table property see the docs (https://developers.notion.com/reference/block#table) (example: "{ "table_width":2, "has_column_header":false, "has_row_header":false }")
Table of Contents : Table of contents block objects contain the following information within the table_of_contents property see the docs (https://developers.notion.com/reference/block#table-of-contents) (example: "{ "color":"default" }")
Additional Fields : Specify additional fields to include on this block as JSON see the docs (https://developers.notion.com/reference/block) (example: "{ "child_page":{ "title":"Lacinato kale" }, "child_database":{ "title":"My database" } }")
Success
Was this page helpful?