Skip to content

Seek help (how to create a page in a database) #62

Answered by lastorel
dive2space asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, Thank's for the question. Sorry, I converted it issue to the discussion

For the first you need Pytion method .page_create(page_obj, parent, properties, title). Let's see description

from pytion import Notion
no = Notion(token="YOUR TOKEN")
no.pages.page_create?
"""
Signature:
no.pages.page_create(
    page_obj: 'Optional[Page]' = None,
    parent: 'Optional[LinkTo]' = None,
    properties: 'Optional[Dict[str, PropertyValue]]' = None,
    title: 'Optional[Union[str, RichTextArray]]' = None,
    children: 'Optional[BlockArray, List[Block]]' = None,
) -> 'Optional[Element]'
Docstring:
:param page_obj:      you can provide `Page` object or -
                      provide the params for cr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dive2space
Comment options

Answer selected by lastorel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #61 on March 24, 2023 16:29.