SDK v5.1.0 Release: Page Locking and Data Source Updates
We released v5.1.0 of @notionhq/client, our SDK for JavaScript and TypeScript. This includes the following fixes and improvements:
- Add support for
is_lockedboolean parameter on update page and database APIs (to update whether a page is locked in the Notion app UI) dataSource.update: add support for changing a data source’sparentdatabase- Remove
page_idas a possibleparentforCreateDataSourceBodyParameters - Add
request_idto Client log lines
As noted in the library’s README, v5 and above of the SDK isn’t compatible with API versions older than 2025-09-03. See the upgrade guide to learn more.