We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Context
I have a nested database with some rows. I want to script creating a new row by coping an existing row OR by using a template.
Describe the bug Unable to copy a page and have it save
To Reproduce I first tried to do this outside of a database, just for a regular page but couldn't get it to work.
import { NotionCore } from "@nishans/core"; const nishan = new NotionCore.Api.Nishan({ token: "XXXXX", logger: true, }); (async () => { const pageId = "some-UUID"; const pages = await nishan.getPagesById([pageId]); const page = pages.page.get(pageId); const res = await page?.duplicate(1); console.log(res); })();
It outputs some JSON, but I can't find the relevant page on notion or where its copied to. Any ideas on how to do this correctly?
2 additional questions:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Context
I have a nested database with some rows. I want to script creating a new row by coping an existing row OR by using a template.
Describe the bug
Unable to copy a page and have it save
To Reproduce
I first tried to do this outside of a database, just for a regular page but couldn't get it to work.
It outputs some JSON, but I can't find the relevant page on notion or where its copied to. Any ideas on how to do this correctly?
2 additional questions:
The text was updated successfully, but these errors were encountered: