Method
Parameters
The ID of the data source to update (with or without dashes)
New title of the data source as it appears in Notion. Array of rich text objects.
New icon for the data source. Set to
null to remove the icon.The property schema updates for the data source.
- To add or update a property, provide its configuration
- To rename a property, provide
{ name: "New Name" } - To remove a property, set it to
null
name and description field along with its type-specific configuration.Whether to move the data source to or from the trash. Equivalent to
in_trash.Whether to move the data source to or from the trash. Equivalent to
archived.Bearer token for authentication. Overrides the client-level auth if provided.
Response
Returns the updatedDataSourceObjectResponse or PartialDataSourceObjectResponse.
Always
"data_source"The unique identifier of the data source
The updated title of the data source
The updated property schema
The updated icon
ISO 8601 timestamp when the data source was last edited (updated)
The user who last edited the data source
Examples
Update title and icon
Add a new property
Rename a property
Remove a property
Move to trash
Related Methods
- dataSources.retrieve - Retrieve a data source by ID
- dataSources.create - Create a new data source
- dataSources.query - Query pages from a data source