Replies: 3 comments 4 replies
-
Sounds like the
|
Beta Was this translation helpful? Give feedback.
-
To help others (who may run into this)... As @cemonliu points out, the error can be confusing. I ran into this while trying to create a page with no children. Turns out that children must be an empty list and not |
Beta Was this translation helpful? Give feedback.
-
For people trying to create a page under another page (and not under a database), the following has worked for me: notion.pages.create(
parent={"page_id": page_id},
properties={
"title": [{"text": {"content": "my awesome title"}}],
},
children=[],
) Adding more properties like the ones in the Create a page API documentation raises errors such as:
or |
Beta Was this translation helpful? Give feedback.
-
when i try to create a page with child block. It feedback the error with page_id should be defined.
I have specified the database_id when created page, if i remove the children parameter , it works fine.
notion.pages.create(parent={"database_id": database_id}, properties=new_page,children=new_child)
Beta Was this translation helpful? Give feedback.
All reactions