【发布时间】:2021-09-06 11:05:51
【问题描述】:
我正在寻找一种方法来创建页面提醒作为提及或在数据库页面的日期属性中。 API还有可能吗?
在本例中,我想创建一个带有 Date 属性提醒的新 daabse 条目。
return await require("@pipedreamhq/platform").axios(this, {
method: "POST",
url: `https://api.notion.com/v1/pages/`,
headers: {
"Authorization": `Bearer API_KEY_HERE`,
"Content-Type": "application/json",
"Notion-Version": "2021-05-13"
},
data: {
"parent": { "database_id": "DB_ID_HERE" },
properties: {
"Day": {
"title": [
{
"type": "text",
"text": {
"content": "Title"
}
}
]
},
"Date" : { "date" : { "start": "DATE_HERE } },
}
}
})
【问题讨论】:
-
您能否通过添加更多您尝试过的信息和代码块来使问题更加集中
标签: notion-api