Skip to main content
PATCH
TypeScript SDK
Updates a data source’s name, icon, schema, parent, or trash status. Returns the updated data source object. Use properties to change the schema. See Update data source properties for request bodies and Property schemas for each type’s settings.

Parent changes

Set parent.database_id to move the data source to another database. Existing views in the original database become linked views. Notion creates a table view in the destination database. See Views for the view API.

How data sources property type changes work

Changing a property’s type changes how Notion reads its existing values. Some values cannot be read in the new type. Test the conversion before applying it to data you need. The Name property (title) cannot be removed or converted. Other properties cannot become title. You can add or rename a Place property, but you cannot convert a property to or from place. Synced data sources have additional restrictions.

Interacting with data source rows

This endpoint changes the schema for all pages in the data source. To change one page’s values, use Update page. To add a page, use Create page. Keep the schema within 50 KB. Schema updates that are too large return validation_error. The error identifies the largest property by name, ID, and byte size so you can reduce it. Large option lists and long property descriptions contribute to schema size. Remove unused settings or shorten descriptions before retrying.

Access and errors

The connection needs update content capabilities and access to the data source. Relations and rollups also need access to the related database. A missing data source or missing access returns 404. See Status codes for other errors.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Notion-Version
enum<string>
required

The API version to use for this request. The latest version is 2026-03-11.

Available options:
2026-03-11

Path Parameters

data_source_id
string
required

ID of a Notion data source.

Body

application/json
title
(Text · object | Mention · object | Equation · object)[]

Title of data source as it appears in Notion.

Maximum array length: 100
icon
File Upload · object

Data source icon.

properties
object

The property schema of the data source. The keys are property names or IDs, and the values are property configuration objects. Properties set to null will be removed.

in_trash
boolean

Whether the data source should be moved to or from the trash. If not provided, the trash status will not be updated.

parent
Database Id · object

The parent of the data source, when moving it to a different database. If not provided, the parent will not be updated.

Response

object
string
required

The data source object type name.

Allowed value: "data_source"
id
string<uuid>
required

The ID of the data source.

properties
object
required

The properties schema of the data source.