create Database
abstract suspend fun createDatabase(parentPageId: UuidString, title: RichTextList = RichTextList(), icon: EmojiOrFile? = null, cover: File? = null, properties: PropertySpecList = PropertySpecList()): Database
Creates a new database as a child of a page. The database must have at least one title property defined in the properties list.
Return
The created Database object
Parameters
parent Page Id
The unique identifier of the parent page
title
The title of the database as a rich text list
icon
Optional emoji or file to use as the database icon
cover
Optional file to use as the database cover
properties
List of property specifications that define the database schema
See also
Throws
Notion Api Exception
if the parent page doesn't exist, the properties are invalid, or the API request fails