Update database properties
properties
body param.Remove a property
"properties": {
"J@cT": null,
}
"properties": {
"propertyToDelete": null
}
Rename a property
name
property object value."properties": {
"J@cT": {
"name": "New Property Name"
}
}
"properties": {
"Old Property Name": {
"name": "New Property Name
}
}
Property | Type | Description |
---|---|---|
name | string | The name of the property as it appears in Notion. |
Update property type
"title"
, "rich_text"
, "number"
, "select"
, "multi_select"
, "date"
, "people"
, "files"
, "checkbox"
, "url"
, "email"
, "phone_number"
, "formula"
, "relation"
, "rollup"
, "created_time"
, "created_by"
, "last_edited_time"
, "last_edited_by"
. Within this property, the configuration is a property schema object.❗️Limitations
Note that the property type of the title
cannot be changed.It's not possible to update the name
oroptions
values of astatus
property via the API.
Select configuration updates
select
property:Property | Type | Description | Example value |
---|---|---|---|
options | optional array of existing select options and select option objects | Settings for select properties. If an existing option is omitted, it will be removed from the database property. New options will be added to the database property. |
Existing select options
Property | Type | Description | Example value |
---|---|---|---|
name | optional string | Name of the option. | "Fruit" |
id | optional string | ID of the option. | "ff8e9269-9579-47f7-8f6e-83a84716863c" |
Multi-select configuration updates
multi_select
property:Property | Type | Description | Example value |
---|---|---|---|
options | optional array of existing select options and multi-select option objects | Settings for multi select properties. If an existing option is omitted, it will be removed from the database property. New options will be added to the database property. |
Existing multi-select options
Property | Type | Description | Example value |
---|---|---|---|
name | string | Name of the option as it appears in Notion. | "Fruit" |
id | optional string | ID of the option. | "ff8e9269-9579-47f7-8f6e-83a84716863c" |
Limitations
Formula maximum depth
formula
property values that exceed have or exceed depth of 10 referenced tables, the API will return a "Formula depth" error as a "validation_error"
formula
property object from the Retrieve a Database endpoint and use the formula expression to compute the value of more complex formulas.Unsupported Rollup Aggregations
show_unique
(Show unique values)unique
(Count unique values)median
(Median)Could not find page/database
Error
rollup
and formula
can involve computing a value based on the properties in another relation
page. As such the integration needs permissions to the other relation
page. If the integration doesn't have permissions page needed to compute the property value, the API will return a "object_not_found"
error specifying the page the integration lacks permissions to.