Skip to content

How to update a page property? #159

Answered by ramnes
rwaal asked this question in Q&A
Nov 15, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hey there!

Yes, you want to use the notion.pages.update(...) method.

You can find its Python documentation here, and the reference API documentation here.

TL;DR, you probably want something like this:

notion.pages.update(
    page_id,
    properties={
        "Test": {
            "rich_text": [{"type": "text", "text": {"content": "My updated value"}}]
        }
    },
)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rwaal
Comment options

@rwaal
Comment options

@ramnes
Comment options

Answer selected by ramnes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants