2

I'm currently trying to implement adding pages using Notion's API.

I have confirmed that a new page can be added by specifying the ID of the page or database (table), but is it not possible to add a page to the workspace?

I thought it would work if I passed it in the form below, but an error is returned...

{
 "parent": {
 "type": "workspace",
 "workspace": true
 }
}
"message": "body failed validation. Fix one:\nbody.parent.page_id should be defined, instead was `undefined`.\nbody.parent.database_id should be defined, instead was `undefined`.",

Can someone please help me?

jonrsharpe
123k31 gold badges278 silver badges489 bronze badges
asked Nov 18, 2024 at 11:52

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.