PATCH /v1/databases/{database_id}. Your connection needs access and update content capabilities.
The operations below use the same properties format as data source updates. For legacy relation settings, use database_id instead of data_source_id to identify the target.
Add a property
Add a new key toproperties and provide the type’s settings. This example adds a number and a date property. Existing properties that you omit stay unchanged.
Request body
Remove a property
Set the property entry tonull. This removes the column for all pages in the data source. To clear a value on one page instead, use Update page.
Rename a property
Setname on the existing entry. Its ID stays the same. Prefer the ID if another user might rename the property while your connection is running.
description, include it beside the type’s settings. Repeat the current description when changing settings if you want to keep it. A rename that sends only name preserves the description.
Update property type
Supply the new type’s settings under the existing name or ID.Change Estimate to a number
Select configuration updates
Setselect.options to the complete list of options you want to keep. Omitted options are removed. New names add options. Omitting options keeps the current list.
Keep High and add Medium
Existing select options
Use an existing option’sid or name to retain it. You can update its description. The API does not rename existing options or change their colors; make those changes in Notion. New options accept name, optional color, and optional description. See Option fields.
Multi-select configuration updates
Setmulti_select.options using the same rules as select. Include every option to retain. This changes the available tags, not the tags selected on one page.
Keep High and add Launch
Existing multi-select options
Existing options follow the same ID, name, color, and description rules.Status configuration updates
Setstatus.options to the complete list to retain. Use group to place an option in To-do, In progress, or Complete.
Keep In progress and add Shipped
Existing status options
Existing options follow the same ID, name, color, and description rules. When you omitgroup, an existing option keeps its group. A new option uses To-do if that group exists, or the first existing group otherwise.
Removed options are also removed from their groups. To rename, reorder, or change the groups themselves, use Notion. To select an option on a page, write the page’s status value.