Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
KoditkarVedant opened this issue Sep 16, 2023 · 0 comments · Fixed by #380
Closed

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

KoditkarVedant opened this issue Sep 16, 2023 · 0 comments · Fixed by #380
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@KoditkarVedant
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant