From 9cb98b2e29c1370af865f1c268e3c3d933f61ef9 Mon Sep 17 00:00:00 2001 From: Kyeongmin Kim <48749100+digzect@users.noreply.github.com> Date: Sun, 14 Jul 2024 07:20:24 +0900 Subject: [PATCH] Add in_trash property to PagesEndpoint (#236) * replace archived to in_trash * add 'in_trash' property of a page --------- Co-authored-by: digzect --- notion_client/api_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notion_client/api_endpoints.py b/notion_client/api_endpoints.py index 75b6811..06408c9 100644 --- a/notion_client/api_endpoints.py +++ b/notion_client/api_endpoints.py @@ -232,7 +232,7 @@ def update(self, page_id: str, **kwargs: Any) -> SyncAsync[Any]: return self.parent.request( path=f"pages/{page_id}", method="PATCH", - body=pick(kwargs, "archived", "properties", "icon", "cover"), + body=pick(kwargs, "in_trash", "archived", "properties", "icon", "cover"), auth=kwargs.get("auth"), )