Method
Parameters
Property schema of the data source. Each key is a property name, and each value is a property configuration object.Supported property types:
title- Title property (required for data sources)rich_text- Rich text contentnumber- Numeric valuesselect- Single select from optionsmulti_select- Multiple selectionsdate- Date or date rangepeople- User referencesfiles- File attachmentscheckbox- Boolean valuesurl- URL stringsemail- Email addressesphone_number- Phone numbersformula- Calculated valuesrelation- Relations to other data sourcesrollup- Aggregate values from relationscreated_time- Automatic creation timestampcreated_by- Automatic creator referencelast_edited_time- Automatic edit timestamplast_edited_by- Automatic editor reference
Title of the data source as it appears in Notion. Array of rich text objects.
Icon for the data source. Can be an emoji, external URL, or file upload.
Bearer token for authentication. Overrides the client-level auth if provided.
Response
Returns aDataSourceObjectResponse or PartialDataSourceObjectResponse.
Always
"data_source"The unique identifier of the data source
The title of the data source
The description of the data source
The parent of the data source (database or another data source)
The property schema of the data source
ISO 8601 timestamp when the data source was created
ISO 8601 timestamp when the data source was last edited
The user who created the data source
The user who last edited the data source
The icon of the data source
The cover image of the data source
The Notion URL of the data source
Whether the data source is archived
Whether the data source is in the trash
Example
Related Methods
- dataSources.retrieve - Retrieve a data source by ID
- dataSources.update - Update a data source
- dataSources.query - Query pages from a data source