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_id
ID of a Notion database, a container for one or more data sources. This is a UUIDv4, with or without dashes.
Headers
Notion-Version
The API version to use for this request. The latest version is <<internalLatestNotionVersion>>.
Request
This endpoint expects an object.
parent
The parent page or workspace to move the database to. If not provided, the database will not be moved.
title
The updated title of the database, if any. If not provided, the title will not be updated.
is_inline
Whether the database should be displayed inline in the parent page. If not provided, the inline status will not be updated.
icon
The updated icon for the database, if any. If not provided, the icon will not be updated.
cover
The updated cover image for the database, if any. If not provided, the cover will not be updated.
in_trash
Whether the database should be moved to or from the trash. If not provided, the trash status will not be updated.
is_locked
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
object
id
title
parent
is_inline
in_trash
is_locked
created_time
last_edited_time
data_sources
icon
cover
developer_survey
request_id
Errors
400
Bad Request Error