Skip to navigation

Update a database

Updates the attributes — the title, description, icon, or cover, etc. — of a specified database.

Returns the updated database object.

To update the properties of the data sources under a database, use the Update a data source API starting from API version 2025-09-03.

For an overview of how to use the REST API with databases, refer to the Working with databases guide.

Each Public API endpoint can return several possible error codes. See the Error codes section of the Status codes documentation for more information.

Path parameters

database_idstringRequired
ID of a Notion database, a container for one or more data sources. This is a UUIDv4, with or without dashes.

Headers

Notion-VersionstringRequired

The API version to use for this request. The latest version is <<internalLatestNotionVersion>>.

Request

This endpoint expects an object.
parentobjectOptional
The parent page or workspace to move the database to. If not provided, the database will not be moved.
titlelist of objectsOptional
The updated title of the database, if any. If not provided, the title will not be updated.
is_inlinebooleanOptional
Whether the database should be displayed inline in the parent page. If not provided, the inline status will not be updated.
iconobjectOptional
The updated icon for the database, if any. If not provided, the icon will not be updated.
coverobjectOptional
The updated cover image for the database, if any. If not provided, the cover will not be updated.
in_trashbooleanOptional
Whether the database should be moved to or from the trash. If not provided, the trash status will not be updated.
is_lockedbooleanOptional
Whether the database should be locked from editing in the Notion app UI. If not provided, the locked state will not be updated.

Response

200
objectstringOptional
idstringOptional
titlelist of objectsOptional
parentobjectOptional
is_inlinebooleanOptionalDefaults to true
in_trashbooleanOptionalDefaults to true
is_lockedbooleanOptionalDefaults to true
created_timestringOptional
last_edited_timestringOptional
data_sourceslist of objectsOptional
iconanyOptional
coveranyOptional
developer_surveystringOptional
request_idstringOptional

Errors

400
Bad Request Error