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.

FieldTypeRequiredDefaultConstraintsExample
database_id
Id of the database to update.
stringYes———
title
New title as plain text.
stringNo———
description
New description as plain text.
stringNo———
properties
Schema changes: {"Old": {"name": "New"}} renames a column, {"Gone": null} removes one, a type object retypes one.
objectNo——{"Old":{"name":"New"}}
archived
True moves the database to the trash, false restores it.
booleanNo———
  • 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

FieldTypeExample
ok
True when Notion accepted the update.
booleantrue
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.