How to Fix APIResponseError with Excessive Children Length and Undefined Page_ID in Notion API?

This topic was automatically generated from Slack. You can find the original thread here.

How can i make the change based on this error?

APIResponseError
body failed validation. Fix one: body.children.length should be ≤ 100, instead was 105. body.parent.page_id should be defined, instead was undefined.
DETAILS

    at null.buildRequestError (/pipedream/dist/code/6642d793c1f1951adaefcec15af4a78dc1323da28471150c2fe46b858701777e/node_modules/.pnpm/@notionhq+client@2.2.5/node_modules/@notionhq/client/build/src/errors.js:162:16)
    at Client.request (/pipedream/dist/code/6642d793c1f1951adaefcec15af4a78dc1323da28471150c2fe46b858701777e/node_modules/.pnpm/@notionhq+client@2.2.5/node_modules/@notionhq/client/build/src/Client.js:347:54)
    at process.processTicksAndRejections (internal/process/task_queues.js:95:5)
    at Object.run (file:///pipedream/dist/code/6642d793c1f1951adaefcec15af4a78dc1323da28471150c2fe46b858701777e/component.mjs:320:22)
    at global.executeComponent (/var/task/launch_worker.js:123:22)
    at MessagePort.messageHandler (/var/task/launch_worker.js:617:28)

Hi , what specific Notion action you’re using? Are you using code?

I am using code, but not sure how to answer your question