Skip to content

Commit

Permalink
Add in_trash property to PagesEndpoint (#236)
Browse files Browse the repository at this point in the history
* replace archived to in_trash

* add 'in_trash' property of a page

---------

Co-authored-by: digzect <jjongguet@digzectui-MacBookAir.local>
  • Loading branch information
jjongguet and digzect authored Jul 13, 2024
1 parent d5e5f5c commit 9cb98b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notion_client/api_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
)

Expand Down

0 comments on commit 9cb98b2

Please sign in to comment.