I'm trying to create a Notion page using API but keep getting error
body failed validation: body.parent should be defined, instead was
undefined
.
I'm using an edited version of actual cURL code snippet from the documentation. Clearly the parent is defined. Also GET and PATCH API requests seem to work fine, it's just POST that won't.
curl 'https://api.notion.com/v1/pages' -H 'Authorization: Bearer secret_SECRET' -H "Content-Type: application/json" -H "Notion-Version: 2021-08-16" --data '{
"parent": { "page_id": "PAGEID" }}'
(I removed the "properties" part from the request payload to simplify the snippet in question).