notion-dotnet / notion-sdk-net

A Notion SDK for .Net
MIT License
181 stars 44 forks source link

A support for `after` parameter to the Append block children API #371

Closed KoditkarVedant closed 11 months ago

KoditkarVedant commented 11 months ago

A new after parameter has been added to the Append block children endpoint. Developers can now specific where to append a new block, instead of appending it to the end of a parent block by default.

curl -X PATCH https://api.notion.com/v1/blocks/16d8004e-5f6a-42a6-9811-51c22ddada12/children \
  -H 'Authorization: Bearer '"$NOTION_API_KEY"'' \
  -H "Content-Type: application/json" \
  -H "Notion-Version: 2022-06-28" \
  --data '{
    "children": [
    ...
    }
  ], after: "<block_id_to_append_after>"
}'

Notion changelog: https://developers.notion.com/page/changelog#june-13---july-10-2023