Update Database
notion.update_database
ActionBusiness appsconnection required
Calls the Notion API with the connection's credentials.
Rename a database, edit its description, schema or archived flag.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Notion
- Secret shape
- the integration token, or {"token": "…"}
- Resolved by
- config.connection_id, else node.connection_id
Configuration
5 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
database_id Id of the database to update. | string | Yes | — | — | — |
title New title as plain text. | string | No | — | — | — |
description New description as plain text. | string | No | — | — | — |
properties Schema changes: {"Old": {"name": "New"}} renames a column, {"Gone": null} removes one, a type object retypes one. | object | No | — | — | {"Old":{"name":"New"}} |
archived True moves the database to the trash, false restores it. | boolean | No | — | — | — |
- At least one of title, description, properties, archived must be set.
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"properties": {
"Old": {
"name": "New"
}
}
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
ok True when Notion accepted the update. | boolean | true |
database_id Id of the updated database. | string | — |
url Notion URL of the database. | string | — |
{
"database_id": "",
"ok": true,
"url": ""
}Notes
- Removing or retyping a column loses the data already in it.
See Update Database run in a workflow.
In a technical demo we add the Notion connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.