Method
Parameters
string
required
The ID of the data source to update (with or without dashes)
RichTextItemRequest[]
New title of the data source as it appears in Notion. Array of rich text objects.
PageIconRequest | null
New icon for the data source. Set to
null to remove the icon.Record<string, PropertyConfiguration | { name: string } | null>
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.boolean
Whether to move the data source to or from the trash. Equivalent to
in_trash.boolean
Whether to move the data source to or from the trash. Equivalent to
archived.object
string
Bearer token for authentication. Overrides the client-level auth if provided.
Response
Returns the updatedDataSourceObjectResponse or PartialDataSourceObjectResponse.
string
Always
"data_source"string
The unique identifier of the data source
RichTextItemResponse[]
The updated title of the data source
Record<string, DatabasePropertyConfigResponse>
The updated property schema
PageIconResponse | null
The updated icon
string
ISO 8601 timestamp when the data source was last edited (updated)
PartialUserObjectResponse
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