Using the notion API, I'm successfully able to create a database with a default Table view:
await notion.databases.create({
parent: { type: "page_id", page_id: response.id },
is_inline: true,
title: [
{
type: "text",
text: {
content: "Highlights",
link: null
}
}
],
properties: {
Name: {
title: {}
},
...
}
});
This Database shows up on notion using the Table view.
Is there a way to create a database with a Gallery view using the Notion API?