ramnes / notion-sdk-py

The official Notion API client library, but rewritten in Python! (sync + async)
https://ramnes.github.io/notion-sdk-py
MIT License
1.75k stars 138 forks source link

Adding "after"-parameter to children endpoint #207

Closed timo-codecentric closed 1 year ago

timo-codecentric commented 1 year ago

To insert a block in a specific place in a page, the "after" parameter is necessary, which was missing in the API call and is added by this PR. See https://developers.notion.com/reference/patch-block-children

ramnes commented 1 year ago

Good catch, thanks! CI fails but that seems unrelated, will check that later.

brainyoung-com commented 2 months ago

It's confusing to insert a block before the first block of the page. Is it possible? Or does it require any trick? thanks.