-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Notion API Update #18317
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
Notion API Update #18317
Changes from 9 commits
822de7f
1e6f76c
66ef164
85cb57f
fe0fcba
4abd414
4613aca
350242a
9974ceb
9a88944
a50e854
85169c4
f979469
a6fc9fb
af12d9c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,4 @@ export default { | |
| console.log(Object.keys(this.$auth)); | ||
| }, | ||
| }, | ||
| }; | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,4 @@ export default { | |
| console.log(Object.keys(this.$auth)); | ||
| }, | ||
| }, | ||
| }; | ||
| }; | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,25 +1,25 @@ | ||||||
| # Overview | ||||||
|
|
||||||
| The Notion Create Page from Database action allows you to add pages to a Notion Database. | ||||||
| The Notion Create Page from Data Source action allows you to add pages to a Notion Data Source. | ||||||
|
|
||||||
| This action features easy to use dropdowns that automatically populate your databases as well as your database's properties, also known as columns. | ||||||
| This action features easy to use dropdowns that automatically populate your data sources as well as your data sources's properties, also known as columns. | ||||||
|
||||||
| This action features easy to use dropdowns that automatically populate your data sources as well as your data sources's properties, also known as columns. | |
| This action features easy-to-use dropdowns that automatically populate your data sources as well as your data source’s properties (columns). |
🤖 Prompt for AI Agents
components/notion/actions/create-page-from-database/README.md around line 5: the
phrase uses an incorrect possessive "data sources's properties"; change it to
the singular possessive "data source's properties" so the sentence reads
"...automatically populate your data sources as well as your data source's
properties, also known as columns." Ensure spacing and punctuation remain
correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API terminology: Notion uses a parent object, not parent_id.
Reflect the current API (parent: { data_source_id: ... }).
-...used as the `parent_id` parameter to that endpoint...
+...used in the `parent` object (e.g., `parent: { data_source_id: "<ID>" }`) for that endpoint...📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| This action interacts with the [Notion create a Page API endpoint](https://developers.notion.com/reference/post-page). The Data Source selected in the `Parent Data Source ID` is used as the `parent_id` parameter to that endpoint so the page is added to your data source. | |
| This action interacts with the [Notion create a Page API endpoint](https://developers.notion.com/reference/post-page). The Data Source selected in the `Parent Data Source ID` is used in the `parent` object (e.g., `parent: { data_source_id: "<ID>" }`) for that endpoint so the page is added to your data source. |
🤖 Prompt for AI Agents
In components/notion/actions/create-page-from-database/README.md around line 7,
update the wording to use Notion's current API terminology: refer to a "parent"
object rather than "parent_id". Change the description to explain that the
selected Data Source ID is provided as parent: { data_source_id: "<id>" } (or
equivalent) so the page is added to that data source, and ensure examples and
parameter names in the README reflect "parent" with a nested data_source_id
field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Confirm Notion supports
link_to_pagewithdata_source_id.The new child type
child_data_sourcelikely maps tolink_to_page: { type: "data_source_id", data_source_id }, but this API is very new. Please verify against the 2025‑09‑03 docs.🌐 Web query:
💡 Result:
Answer: As of 2025-09-03, the link_to_page block supports only type = "page_id" and type = "database_id". data_source_id is not listed as a valid link_to_page type. See the "Link to Page block type" section showing examples using page_id and database_id [1], and the 2025-09-03 changelog note about databases/data_sources (no change adding data_source_id to link_to_page) [2].
Sources:
[1] Notion Developers — "Synced Block, Link to Page and Template block types are now supported in the API" — Link to Page block type (example uses "type": "page_id" and mentions "database_id"). (developers.notion.com)
[2] Notion Developers — "Changes by version" (2025-09-03 entry describing /v1/databases → /v1/data_sources reorganization). (developers.notion.com)
Citations:
Replace/remove unsupported link_to_page type "data_source_id" — Notion docs (2025-09-03) list only "page_id" and "database_id".
File: components/notion/actions/common/base-page-builder.mjs
Lines: 213-220
Notion docs (Link to Page block type, 2025-09-03) do not list
data_source_id; change this to use a supported type (page_idordatabase_id) or remove/replace the child_data_source code path and verify block.id maps to the chosen id.🤖 Prompt for AI Agents