Skip to navigation

Create a data source

Use this API to add an additional data source to an existing database. The properties follow the same structure as the initial schema passed to initial_data_source[properties] in the Create a database API, but can be managed independently of the properties of any sibling data sources.

A standard “table” view is created alongside the new data source. To customize database views, use the Notion app. Managing views is not currently supported in the API.

Request

This endpoint expects an object.
parentobjectRequired
An object specifying the parent of the new data source to be created.
propertiesobjectRequired
Property schema of the new data source.
titlelist of objectsOptional
Title of data source as it appears in Notion.
iconobjectOptional
Icon to apply to the data source.

Response

200
objectstringOptional
idstringOptional
created_timestringOptional
last_edited_timestringOptional
propertiesobjectOptional
parentobjectOptional
database_parentobjectOptional
archivedbooleanOptionalDefaults to true
is_inlinebooleanOptionalDefaults to true
iconobjectOptional
coverobjectOptional
urlstringOptional
titlelist of objectsOptional