update_database
Modify database structure by changing title or updating property schema to add, modify, or delete columns in Notion databases.
Instructions
Updates the database itself (not individual records). Can change database title or update schema (add/modify/delete properties/columns). Note: To update individual records, use update_page instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| databaseId | Yes | The ID of the Notion database to update (32 or 36 character UUID format). Example: "123e4567-e89b-12d3-a456-426614174000" | |
| title | No | New title for the database (optional). Example: "Task Management 2024" | |
| schema | No | Database schema (property definitions) to update (optional). Use property names as keys and property definitions as values. Example (adding a new property): { "Priority": { "select": { "options": [ { "name": "High", "color": "red" }, { "name": "Medium", "color": "yellow" }, { "name": "Low", "color": "gray" } ] } } } |
Input Schema (JSON Schema)
{
"properties": {
"databaseId": {
"description": "The ID of the Notion database to update (32 or 36 character UUID format). Example: \"123e4567-e89b-12d3-a456-426614174000\"",
"type": "string"
},
"schema": {
"description": "Database schema (property definitions) to update (optional). Use property names as keys and property definitions as values.\n\nExample (adding a new property):\n{\n \"Priority\": {\n \"select\": {\n \"options\": [\n { \"name\": \"High\", \"color\": \"red\" },\n { \"name\": \"Medium\", \"color\": \"yellow\" },\n { \"name\": \"Low\", \"color\": \"gray\" }\n ]\n }\n }\n}",
"type": "object"
},
"title": {
"description": "New title for the database (optional). Example: \"Task Management 2024\"",
"type": "string"
}
},
"required": [
"databaseId"
],
"type": "object"
}