The default view could not be found in the code below. Is there a way to specify a default view in the code? I want the default view to show the calendar. ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ
My code:
from wsgiref import headers
import requests, json
token = '~~~~~'
parent_pageID="df0f2f4b-ca24-46e3-a48e-85650cbd5ba5"
page_header={
"Authorization": "Bearer " + token,
"Content-Type": "application/json",
"Notion-Version": "2022-06-28"
}
def Createpage(pageId,headers):
createDBURL=f"https://api.notion.com/v1/databases"
DBData={
"object": "database",
"title": [
{
"type": "text",
"text": {
"content": "new page1"
},
"plain_text": "new page1"
}
],
"properties": {
"date": {
"id": "%40diA",
"name": "date",
"type": "date",
"date": {}
},
"content": {
"id": "%5BhX%40",
"name": "content",
"type": "rich_text",
"rich_text": {}
},
"to do": {
"id": "title",
"name": "to do",
"type": "title",
"title": {}
}
},
"parent": {
"type": "page_id",
"page_id": "df0f2f4b-ca24-46e3-a48e-85650cbd5ba5"
}
}
d = json.dumps(DBData)
res = requests.request("POST", createDBURL, headers=headers, data=d)
print(res.status_code)
print(res.text)
Createpage(parent_pageID,page_header)
Expected: