Skip to content

Commit 0a2d1db

Browse files
committed
Add missing parameters for notion.pages.create()
1 parent db4eda7 commit 0a2d1db

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

notion_client/api_endpoints.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,16 @@ def create(self, **kwargs: Any) -> SyncAsync[Any]:
265265
return self.parent.request(
266266
path="pages",
267267
method="POST",
268-
body=pick(kwargs, "parent", "properties", "children", "icon", "cover"),
268+
body=pick(
269+
kwargs,
270+
"parent",
271+
"properties",
272+
"icon",
273+
"cover",
274+
"content",
275+
"children",
276+
"template",
277+
),
269278
auth=kwargs.get("auth"),
270279
)
271280

0 commit comments

Comments
 (0)