API-update-a-database
Modify a Notion database by updating its title, description, or property schema using the specified database ID. Enables structured data management within Notion workspaces.
Instructions
Notion | Update a database
Input Schema
Name | Required | Description | Default |
---|---|---|---|
database_id | Yes | identifier for a Notion database | |
description | No | An array of [rich text objects](https://developers.notion.com/reference/rich-text) that represents the description of the database that is displayed in the Notion UI. If omitted, then the database description remains unchanged. | |
properties | No | Property schema of database. The keys are the names of properties as they appear in Notion and the values are [property schema objects](https://developers.notion.com/reference/property-schema-object). | |
title | No | An array of [rich text objects](https://developers.notion.com/reference/rich-text) that represents the title of the database that is displayed in the Notion UI. If omitted, then the database title remains unchanged. |
Input Schema (JSON Schema)
{
"$defs": {},
"properties": {
"database_id": {
"description": "identifier for a Notion database",
"type": "string"
},
"description": {
"description": "An array of [rich text objects](https://developers.notion.com/reference/rich-text) that represents the description of the database that is displayed in the Notion UI. If omitted, then the database description remains unchanged.",
"items": {
"additionalProperties": false,
"properties": {
"text": {
"additionalProperties": false,
"properties": {
"content": {
"type": "string"
},
"link": {
"type": [
"object",
"null"
]
}
},
"required": [
"content"
],
"type": "object"
},
"type": {
"enum": [
"text"
],
"type": "string"
}
},
"required": [
"text"
],
"type": "object"
},
"type": "array"
},
"properties": {
"additionalProperties": true,
"description": "Property schema of database. The keys are the names of properties as they appear in Notion and the values are [property schema objects](https://developers.notion.com/reference/property-schema-object).",
"properties": {
"name": {
"type": "string"
}
},
"type": "object"
},
"title": {
"description": "An array of [rich text objects](https://developers.notion.com/reference/rich-text) that represents the title of the database that is displayed in the Notion UI. If omitted, then the database title remains unchanged.",
"items": {
"additionalProperties": false,
"properties": {
"text": {
"additionalProperties": false,
"properties": {
"content": {
"type": "string"
},
"link": {
"type": [
"object",
"null"
]
}
},
"required": [
"content"
],
"type": "object"
},
"type": {
"enum": [
"text"
],
"type": "string"
}
},
"required": [
"text"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"database_id"
],
"type": "object"
}