Skip to content

How to add an image block or text block in a database. #103

Answered by AxDSan
ybee2003 asked this question in Q&A
Discussion options

You must be logged in to vote
<...>
image_block_props= {
  "type": "image",
  "image": {
    "type": "external",
    "external": {
        "url": "https://website.domain/images/image.png"
    }
  }
}
<...>
notion.pages.create(parent={"database_id": database_id}, properties=new_page, children=[image_block_props])

That's it! you were pretty close! ⭐

I welcome you to read more upon:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ramnes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants