Notion Answers

Help between Notion users

Register & Ask

It's free & easy

Get answers

Answers, votes & comments

Vote and select answers

Receive points, vote and give the solution



Why can't I update a page property using the API?

On Windows 10 using the Notion API ...

I'm trying to update one column (property) value in one row (page) of my database using cURL. I keep getting an error when I send the following with appropriate replacements for the square bracketed [ ] items:

curl[the_page_id] -H "Authorization: Bearer [my_secret]" -H "Content-Type: application/json" -H "Notion-Version: 2022-06-28" -X PATCH --data '{"properties": {"Plot": { "text": "Hello" }}}'

"Plot" is the name of the column/property and "Hello" is the value with which I'm trying to update that column/property in the page specified by the PageID.

Here is the returned error:

      {"object":"error","status":400,"code":"invalid_json","message":"Error parsing JSON body."}
      curl: (3) unmatched brace in URL position 1:

As you can see, there is no unmatched brace (unless I am misinterpreting the error message). I tried switching the single and double quotes in the --data section with the same results. I tried replacing "text" with "rich_text" with the same results.

This almost exactly mimics the example provided by the Notion documentation here:

What am I doing wrong? Thanks.

Please log in or register to answer this question.


Welcome to Notion Answers, where you can ask questions and receive answers from other members of the community.

Please share to grow the Notion Community!