Notion Helper - v1.3.30
    Preparing search index...

    Function position

    • Creates a position object for specifying where a child page should be placed within its parent page. Only valid when the parent is a page (not a data source or database).

      Parameters

      • positionChoice: string | Object

        The position to place the new page. Can be:

        • "page_start" (or "start", "top"): Place the page at the top of the parent.
        • "page_end" (or "end", "bottom"): Place the page at the bottom of the parent (default behavior).
        • A valid block ID (UUID string): Place the page after this specific block.
        • A fully-formed position object, e.g.: { type: "after_block", after_block: { id: "block-id" } }

      Returns Object | null

      A position object, or null if invalid.

      PageShorthand