PATCH
notion_data_sources_update.py
import asyncio
from charter.packs import notion
result = asyncio.run(notion.data_sources_update.ainvoke({"dataSourceId": ..., "body": ...}))
Requires
Update content.This tool’s JSON schema is 20 KB, because it models the whole resource this endpoint writes.
That is more context than most tasks. Narrow it at the call site
with Those are its heaviest branches by schema size, not a recommendation: which ones you can spare is yours to decide. The tool underneath is unchanged.
See Projections.
Tool.derived:narrowed = notion.data_sources_update.derived(
name="data_sources_update_narrowed",
drop={"body.title", "body.icon", "body.parent"},
)
Path parameters
| Field | Type | Description |
|---|---|---|
dataSourceId * | string | The ID of the data source. |
Body
| Field | Type | Description |
|---|---|---|
body * | DataSourceUpdateBody | The fields to change. |