API:关系属性
好的
我正在向 Notion 表发送信息。我遇到的问题是关系属性。
我尝试过传递姓名、传递 ID,但找不到正确的调用。有没有人有他们报告如何使用它们的示例或链接。进行查询时,该字段返回空,因此不能作为示例。
例子:
{
"parent": {
"type": "database_id",
"database_id": "538dfa97-b0f3-4df6-8388-9dbd16f50ad7"
},
"properties": {
"Nombre Tarea": {
"title": [
{
"type": "text",
"text": { "content": "TAREAS 1" }
}
]
},
"Asignado": { "multi_select": [ { "name": "" } ] },
"Origen": { "select": { "name": "Trabajo" } },
"Cliente": { "relation": { "name": "CLM" } }
}
}
or change
"Cliente": { "relation": [{ "id":"Usal-2b240920b9554e869b0a49b30d433cef" } ]}
The answers are:
{
"object": "error",
"status": 400,
"code": "validation_error",
"message": "Cliente has a value that does not match its property type: relation."
}
{
"object": "error",
"status": 400,
"code": "validation_error",
"message": "Cliente has a value that does not match its property type: relation."
}