Notion
notion-update-database
Update a Notion database's properties, name, description, or other attributes. The tool returns a rendered Markdown string showing the updated database structure, including its properties, data sources, and schema information. Database properties define the columns/fields that pages in the database can have. Each property has a type (text, number, select, etc.) and configuration options. Examples: (1) Update database title and description: { "database_id": "f336d0bc-b841-465b-8045-024475c079dd", "title": [{"type": "text", "text": {"content": "Project Tracker 2024"}}], "description": [{"type": "text", "text": {"content": "Track all projects and deliverables"}}] } (2) Add new properties to a database: { "database_id": "f336d0bc-b841-465b-8045-024475c079dd", "properties": { "Priority": { "select": { "options": [ {"name": "High", "color": "red"}, {"name": "Medium", "color": "yellow"}, {"name": "Low", "color": "green"} ] } }, "Due Date": {"date": {}}, "Assigned To": {"people": {}} } } (3) Rename an existing property (use the property ID or current name): { "database_id": "f336d0bc-b841-465b-8045-024475c079dd", "properties": { "Status": {"name": "Project Status"} } } (4) Remove a property (set to null): { "database_id": "f336d0bc-b841-465b-8045-024475c079dd", "properties": { "Old Property": null } } (5) Change display mode from inline to full page: { "database_id": "f336d0bc-b841-465b-8045-024475c079dd", "is_inline": false } (6) Move database to trash (WARNING: cannot be undone without going to the Notion app UI so explicitly confirm with the user that they really want to do this): { "database_id": "f336d0bc-b841-465b-8045-024475c079dd", "in_trash": true } Common property types: - title: The main property (required, cannot be deleted) - rich_text: Multi-line text - number: Numeric values with optional formatting - select: Single choice from options - multi_select: Multiple choices from options - date: Date with optional time - people: User references - checkbox: Boolean values - url: Web links - email: Email addresses - phone_number: Phone numbers - formula: Calculated values based on other properties - relation: Links to pages in another database - rollup: Aggregated values from related pages Notes: - You cannot delete or create new title properties - A database can only have one unique_id property - Synced databases cannot be updated - Use the "fetch" tool first to see the current database schema
Other tools also called notion-update-database?
See providers with this name
Input Schema
{
"type": "object",
"properties": {
"title": {
"type": "array",
"items": {
"allOf": [
{
"type": "object",
"properties": {
"annotations": {
"type": "object",
"properties": {
"bold": {
"type": "boolean",
"description": "Whether the text is formatted as bold."
},
"code": {
"type": "boolean",
"description": "Whether the text is formatted as code."
},
"color": {
"type": "string",
"maxLength": 18,
"minLength": 3,
"description": "One of: `default`, `gray`, `brown`, `orange`, `yellow`, `green`, `blue`, `purple`, `pink`, `red`, `default_background`, `gray_background`, `brown_background`, `orange_background`, `yellow_background`, `green_background`, `blue_background`, `purple_background`, `pink_background`, `red_background`"
},
"italic": {
"type": "boolean",
"description": "Whether the text is formatted as italic."
},
"underline": {
"type": "boolean",
"description": "Whether the text is formatted with an underline."
},
"strikethrough": {
"type": "boolean",
"description": "Whether the text is formatted with a strikethrough."
}
},
"additionalProperties": false
}
}
},
{
"anyOf": [
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "object",
"required": [
"content"
],
"properties": {
"link": {
"anyOf": [
{
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "The URL of the link."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "An object with information about any inline link in this text, if included."
},
"content": {
"type": "string",
"maxLength": 2000,
"description": "The actual text content of the text."
}
},
"description": "If a rich text object's type value is `text`, then the corresponding text field contains an object including the text content and any inline link.",
"additionalProperties": false
},
"type": {
"enum": [
"text"
],
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"mention"
],
"properties": {
"type": {
"enum": [
"mention"
],
"type": "string"
},
"mention": {
"anyOf": [
{
"type": "object",
"required": [
"user"
],
"properties": {
"type": {
"enum": [
"user"
],
"type": "string"
},
"user": {
"anyOf": [
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"object": {
"enum": [
"user"
],
"type": "string",
"description": "The user object type name."
}
},
"additionalProperties": false
},
{
"allOf": [
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
],
"description": "The name of the user."
},
"object": {
"enum": [
"user"
],
"type": "string",
"description": "The user object type name."
},
"avatar_url": {
"type": [
"string",
"null"
],
"description": "The avatar URL of the user."
}
}
},
{
"anyOf": [
{
"type": "object",
"required": [
"person"
],
"properties": {
"type": {
"enum": [
"person"
],
"type": "string"
},
"person": {
"type": "object",
"properties": {
"email": {
"type": "string",
"description": "The email of the person."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"bot"
],
"properties": {
"bot": {
"type": "object",
"properties": {
"owner": {
"anyOf": [
{
"type": "object",
"required": [
"user"
],
"properties": {
"user": {
"anyOf": [
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"description": "The email of the person."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"object": {
"enum": [
"user"
],
"type": "string",
"description": "The user object type name."
}
},
"additionalProperties": false
}
],
"description": "Details about the owner of the bot, when the `type` of the owner is `user`. This means the bot is for a public integration."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"workspace"
],
"properties": {
"workspace": {
"enum": [
"true"
],
"type": "string",
"description": "Details about the owner of the bot, when the `type` of the owner is `workspace`. This means the bot is for an internal integration."
}
},
"additionalProperties": false
}
]
},
"workspace_name": {
"type": [
"string",
"null"
],
"description": "The name of the bot's workspace."
},
"workspace_limits": {
"type": "object",
"required": [
"max_file_upload_size_in_bytes"
],
"properties": {
"max_file_upload_size_in_bytes": {
"type": "integer",
"description": "The maximum allowable size of a file upload, in bytes"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"type": {
"enum": [
"bot"
],
"type": "string"
}
},
"additionalProperties": false
}
]
}
]
}
],
"description": "Details of the user mention."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"date"
],
"properties": {
"date": {
"type": "object",
"required": [
"start"
],
"properties": {
"end": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"description": "The end date of the date object, if any."
},
"start": {
"type": "string",
"format": "date",
"description": "The start date of the date object."
},
"time_zone": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 2
},
{
"type": "null"
}
],
"description": "The time zone of the date object, if any. E.g. America/Los_Angeles, Europe/London, etc."
}
},
"additionalProperties": false
},
"type": {
"enum": [
"date"
],
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"page"
],
"properties": {
"page": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
}
},
"description": "Details of the page mention.",
"additionalProperties": false
},
"type": {
"enum": [
"page"
],
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"database"
],
"properties": {
"type": {
"enum": [
"database"
],
"type": "string"
},
"database": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
}
},
"description": "Details of the database mention.",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"template_mention"
],
"properties": {
"type": {
"enum": [
"template_mention"
],
"type": "string"
},
"template_mention": {
"anyOf": [
{
"type": "object",
"required": [
"template_mention_date"
],
"properties": {
"type": {
"enum": [
"template_mention_date"
],
"type": "string"
},
"template_mention_date": {
"enum": [
"today",
"now"
],
"type": "string",
"description": "The date of the template mention."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"template_mention_user"
],
"properties": {
"type": {
"enum": [
"template_mention_user"
],
"type": "string"
},
"template_mention_user": {
"enum": [
"me"
],
"type": "string",
"description": "The user of the template mention."
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"custom_emoji"
],
"properties": {
"type": {
"enum": [
"custom_emoji"
],
"type": "string"
},
"custom_emoji": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string",
"description": "The URL of the custom emoji."
},
"name": {
"type": "string",
"description": "The name of the custom emoji."
}
},
"description": "Details of the custom emoji mention.",
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"description": "Mention objects represent an inline mention of a database, date, link preview mention, page, template mention, or user. A mention is created in the Notion UI when a user types `@` followed by the name of the reference."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"equation"
],
"properties": {
"type": {
"enum": [
"equation"
],
"type": "string"
},
"equation": {
"type": "object",
"required": [
"expression"
],
"properties": {
"expression": {
"type": "string",
"description": "A KaTeX compatible string."
}
},
"description": "Notion supports inline LaTeX equations as rich text objects with a type value of `equation`.",
"additionalProperties": false
}
},
"additionalProperties": false
}
]
}
]
},
"maxItems": 100,
"description": "The new title of the database, as a rich text object, if you want to update it."
},
"in_trash": {
"type": "boolean",
"description": "Whether to move the database to the trash. WARNING: This operation currently cannot be undone without going to the Notion app UI. Make sure you want to do this before proceeding."
},
"is_inline": {
"type": "boolean",
"description": "Whether the database should be displayed inline in the parent page, if you want to change this setting."
},
"properties": {
"type": "object",
"description": "Updates to make to the database's schema. Use null to remove a property, or provide the `name` only to rename a property.",
"additionalProperties": {
"anyOf": [
{
"allOf": [
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the property."
},
"description": {
"anyOf": [
{
"type": "string",
"maxLength": 280,
"minLength": 1
},
{
"type": "null"
}
],
"description": "The description of the property."
}
}
},
{
"anyOf": [
{
"type": "object",
"required": [
"number"
],
"properties": {
"type": {
"enum": [
"number"
],
"type": "string"
},
"number": {
"type": "object",
"properties": {
"format": {
"type": "string",
"maxLength": 18,
"minLength": 3
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"formula"
],
"properties": {
"type": {
"enum": [
"formula"
],
"type": "string"
},
"formula": {
"type": "object",
"properties": {
"expression": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"select"
],
"properties": {
"type": {
"enum": [
"select"
],
"type": "string"
},
"select": {
"type": "object",
"properties": {
"options": {
"type": "array",
"items": {
"allOf": [
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"color": {
"enum": [
"default",
"gray",
"brown",
"orange",
"yellow",
"green",
"blue",
"purple",
"pink",
"red"
],
"type": "string",
"description": "One of: `default`, `gray`, `brown`, `orange`, `yellow`, `green`, `blue`, `purple`, `pink`, `red`"
},
"description": {
"type": [
"string",
"null"
]
}
}
},
{
"anyOf": [
{
"type": "object",
"required": [
"name"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": false
}
]
}
]
},
"maxItems": 100
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"multi_select"
],
"properties": {
"type": {
"enum": [
"multi_select"
],
"type": "string"
},
"multi_select": {
"type": "object",
"properties": {
"options": {
"type": "array",
"items": {
"allOf": [
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"color": {
"enum": [
"default",
"gray",
"brown",
"orange",
"yellow",
"green",
"blue",
"purple",
"pink",
"red"
],
"type": "string",
"description": "One of: `default`, `gray`, `brown`, `orange`, `yellow`, `green`, `blue`, `purple`, `pink`, `red`"
},
"description": {
"type": [
"string",
"null"
]
}
}
},
{
"anyOf": [
{
"type": "object",
"required": [
"name"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": false
}
]
}
]
},
"maxItems": 100
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"status"
],
"properties": {
"type": {
"enum": [
"status"
],
"type": "string"
},
"status": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"relation"
],
"properties": {
"type": {
"enum": [
"relation"
],
"type": "string"
},
"relation": {
"allOf": [
{
"type": "object",
"required": [
"data_source_id"
],
"properties": {
"data_source_id": {
"type": "string"
}
}
},
{
"anyOf": [
{
"type": "object",
"required": [
"single_property"
],
"properties": {
"type": {
"enum": [
"single_property"
],
"type": "string"
},
"single_property": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"dual_property"
],
"properties": {
"type": {
"enum": [
"dual_property"
],
"type": "string"
},
"dual_property": {
"type": "object",
"properties": {
"synced_property_id": {
"type": "string"
},
"synced_property_name": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
}
]
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"rollup"
],
"properties": {
"type": {
"enum": [
"rollup"
],
"type": "string"
},
"rollup": {
"allOf": [
{
"type": "object",
"required": [
"function"
],
"properties": {
"function": {
"type": "string",
"maxLength": 17,
"minLength": 3
}
}
},
{
"anyOf": [
{
"type": "object",
"required": [
"relation_property_name",
"rollup_property_name"
],
"properties": {
"rollup_property_name": {
"type": "string"
},
"relation_property_name": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"relation_property_id",
"rollup_property_name"
],
"properties": {
"relation_property_id": {
"type": "string"
},
"rollup_property_name": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"relation_property_name",
"rollup_property_id"
],
"properties": {
"rollup_property_id": {
"type": "string"
},
"relation_property_name": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"relation_property_id",
"rollup_property_id"
],
"properties": {
"rollup_property_id": {
"type": "string"
},
"relation_property_id": {
"type": "string"
}
},
"additionalProperties": false
}
]
}
]
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"unique_id"
],
"properties": {
"type": {
"enum": [
"unique_id"
],
"type": "string"
},
"unique_id": {
"type": "object",
"properties": {
"prefix": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"title"
],
"properties": {
"type": {
"enum": [
"title"
],
"type": "string"
},
"title": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"rich_text"
],
"properties": {
"type": {
"enum": [
"rich_text"
],
"type": "string"
},
"rich_text": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"type": {
"enum": [
"url"
],
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"people"
],
"properties": {
"type": {
"enum": [
"people"
],
"type": "string"
},
"people": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"files"
],
"properties": {
"type": {
"enum": [
"files"
],
"type": "string"
},
"files": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"email"
],
"properties": {
"type": {
"enum": [
"email"
],
"type": "string"
},
"email": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"phone_number"
],
"properties": {
"type": {
"enum": [
"phone_number"
],
"type": "string"
},
"phone_number": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"date"
],
"properties": {
"date": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"type": {
"enum": [
"date"
],
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"checkbox"
],
"properties": {
"type": {
"enum": [
"checkbox"
],
"type": "string"
},
"checkbox": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"created_by"
],
"properties": {
"type": {
"enum": [
"created_by"
],
"type": "string"
},
"created_by": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"created_time"
],
"properties": {
"type": {
"enum": [
"created_time"
],
"type": "string"
},
"created_time": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"last_edited_by"
],
"properties": {
"type": {
"enum": [
"last_edited_by"
],
"type": "string"
},
"last_edited_by": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"last_edited_time"
],
"properties": {
"type": {
"enum": [
"last_edited_time"
],
"type": "string"
},
"last_edited_time": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
}
]
},
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The new name of the property."
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"database_id": {
"type": "string",
"description": "The ID of the database to update. This is a UUID v4, with or without dashes, and can be parsed from a database URL."
},
"description": {
"type": "array",
"items": {
"allOf": [
{
"type": "object",
"properties": {
"annotations": {
"type": "object",
"properties": {
"bold": {
"type": "boolean",
"description": "Whether the text is formatted as bold."
},
"code": {
"type": "boolean",
"description": "Whether the text is formatted as code."
},
"color": {
"type": "string",
"maxLength": 18,
"minLength": 3,
"description": "One of: `default`, `gray`, `brown`, `orange`, `yellow`, `green`, `blue`, `purple`, `pink`, `red`, `default_background`, `gray_background`, `brown_background`, `orange_background`, `yellow_background`, `green_background`, `blue_background`, `purple_background`, `pink_background`, `red_background`"
},
"italic": {
"type": "boolean",
"description": "Whether the text is formatted as italic."
},
"underline": {
"type": "boolean",
"description": "Whether the text is formatted with an underline."
},
"strikethrough": {
"type": "boolean",
"description": "Whether the text is formatted with a strikethrough."
}
},
"additionalProperties": false
}
}
},
{
"anyOf": [
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "object",
"required": [
"content"
],
"properties": {
"link": {
"anyOf": [
{
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "The URL of the link."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "An object with information about any inline link in this text, if included."
},
"content": {
"type": "string",
"maxLength": 2000,
"description": "The actual text content of the text."
}
},
"description": "If a rich text object's type value is `text`, then the corresponding text field contains an object including the text content and any inline link.",
"additionalProperties": false
},
"type": {
"enum": [
"text"
],
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"mention"
],
"properties": {
"type": {
"enum": [
"mention"
],
"type": "string"
},
"mention": {
"anyOf": [
{
"type": "object",
"required": [
"user"
],
"properties": {
"type": {
"enum": [
"user"
],
"type": "string"
},
"user": {
"anyOf": [
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"object": {
"enum": [
"user"
],
"type": "string",
"description": "The user object type name."
}
},
"additionalProperties": false
},
{
"allOf": [
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
],
"description": "The name of the user."
},
"object": {
"enum": [
"user"
],
"type": "string",
"description": "The user object type name."
},
"avatar_url": {
"type": [
"string",
"null"
],
"description": "The avatar URL of the user."
}
}
},
{
"anyOf": [
{
"type": "object",
"required": [
"person"
],
"properties": {
"type": {
"enum": [
"person"
],
"type": "string"
},
"person": {
"type": "object",
"properties": {
"email": {
"type": "string",
"description": "The email of the person."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"bot"
],
"properties": {
"bot": {
"type": "object",
"properties": {
"owner": {
"anyOf": [
{
"type": "object",
"required": [
"user"
],
"properties": {
"user": {
"anyOf": [
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"description": "The email of the person."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"object": {
"enum": [
"user"
],
"type": "string",
"description": "The user object type name."
}
},
"additionalProperties": false
}
],
"description": "Details about the owner of the bot, when the `type` of the owner is `user`. This means the bot is for a public integration."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"workspace"
],
"properties": {
"workspace": {
"enum": [
"true"
],
"type": "string",
"description": "Details about the owner of the bot, when the `type` of the owner is `workspace`. This means the bot is for an internal integration."
}
},
"additionalProperties": false
}
]
},
"workspace_name": {
"type": [
"string",
"null"
],
"description": "The name of the bot's workspace."
},
"workspace_limits": {
"type": "object",
"required": [
"max_file_upload_size_in_bytes"
],
"properties": {
"max_file_upload_size_in_bytes": {
"type": "integer",
"description": "The maximum allowable size of a file upload, in bytes"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"type": {
"enum": [
"bot"
],
"type": "string"
}
},
"additionalProperties": false
}
]
}
]
}
],
"description": "Details of the user mention."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"date"
],
"properties": {
"date": {
"type": "object",
"required": [
"start"
],
"properties": {
"end": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"description": "The end date of the date object, if any."
},
"start": {
"type": "string",
"format": "date",
"description": "The start date of the date object."
},
"time_zone": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 2
},
{
"type": "null"
}
],
"description": "The time zone of the date object, if any. E.g. America/Los_Angeles, Europe/London, etc."
}
},
"additionalProperties": false
},
"type": {
"enum": [
"date"
],
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"page"
],
"properties": {
"page": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
}
},
"description": "Details of the page mention.",
"additionalProperties": false
},
"type": {
"enum": [
"page"
],
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"database"
],
"properties": {
"type": {
"enum": [
"database"
],
"type": "string"
},
"database": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
}
},
"description": "Details of the database mention.",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"template_mention"
],
"properties": {
"type": {
"enum": [
"template_mention"
],
"type": "string"
},
"template_mention": {
"anyOf": [
{
"type": "object",
"required": [
"template_mention_date"
],
"properties": {
"type": {
"enum": [
"template_mention_date"
],
"type": "string"
},
"template_mention_date": {
"enum": [
"today",
"now"
],
"type": "string",
"description": "The date of the template mention."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"template_mention_user"
],
"properties": {
"type": {
"enum": [
"template_mention_user"
],
"type": "string"
},
"template_mention_user": {
"enum": [
"me"
],
"type": "string",
"description": "The user of the template mention."
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"custom_emoji"
],
"properties": {
"type": {
"enum": [
"custom_emoji"
],
"type": "string"
},
"custom_emoji": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string",
"description": "The URL of the custom emoji."
},
"name": {
"type": "string",
"description": "The name of the custom emoji."
}
},
"description": "Details of the custom emoji mention.",
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"description": "Mention objects represent an inline mention of a database, date, link preview mention, page, template mention, or user. A mention is created in the Notion UI when a user types `@` followed by the name of the reference."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"equation"
],
"properties": {
"type": {
"enum": [
"equation"
],
"type": "string"
},
"equation": {
"type": "object",
"required": [
"expression"
],
"properties": {
"expression": {
"type": "string",
"description": "A KaTeX compatible string."
}
},
"description": "Notion supports inline LaTeX equations as rich text objects with a type value of `equation`.",
"additionalProperties": false
}
},
"additionalProperties": false
}
]
}
]
},
"maxItems": 100,
"description": "The new description of the database, as a rich text object, if you want to update it."
}
}
}