I’m trying to create task with using this API.
However, adding a notionDocument
to the links
property, as written in the notion document, causes a 500 status issue.
Request
{
"name": "test",
"listIds": [
"<List ID>"
],
"links": [
{
"url": "https://www.notion.so/<Page ID>",
"metadata": {
"type": "notionDocument",
"pageId": "<Page ID>"
}
}
]
}
Response
{
"error": {
"name": "ServerError",
"type": "unrecoverable",
"status": 500,
"message": "Something weird happened. We've been notified.",
"attributes": [],
"raw": true
}
}
When I excluded the other fields, just to make sure it doesn’t support attaching notion links, I got a 400 status instead of a 500 status.
Request
{
"name": "test",
"listIds": [
"<List ID>"
],
"links": [
{
"metadata": {
"type": "notionDocument",
"pageId": "<Page ID>"
}
}
]
}
Response
{
"error": {
"name": "ServerError",
"type": "badRequest-malformed",
"status": 400,
"message": "Missing URL for Notion link",
"attributes": [],
"raw": true
}
}
How can I attach a notion link when creating a task?