Notion API - Public Beta (English)
  1. Blocks
Notion API - Public Beta (English)
  • Introduction
  • Integration capabilities
  • Request limits
  • Status codes
  • ENDPOINTS
    • Authentication
      • Authentication
      • Token
    • Blocks
      • Delete a block
      • Append block children
      • Retrieve a block
      • Update a block
      • Retrieve block children
    • Databases
      • Filter database entries
      • Sort database entries
      • Update database properties
      • Retrieve a database
      • Update a database
      • Query a database
    • Pages
      • Archive a page
      • Retrieve a page property item
      • Create a page
      • Retrieve a Page
      • Update Page properties
    • Users
      • List all users
      • Retrieve your token's bot user
      • Retrieve a user
    • Comments
      • Create comment
      • Retrieve comments
    • Search
      • Search optimizations and limitations
      • Search by title
  • OBJECTS
    • Block
    • Comment
    • Unfurl attribute object for Link Previews
    • Page
      • Page
      • Page properties
    • Database
      • Database
      • Database properties
    • User
      • User
      • Comment
    • Other
      • Emoji object
      • File object
      • Parent object
      • Rich text object
  • Versioning
    • Versioning
    • Changes by version
  • ENDPOINTS Copy
    • Authentication
      • Authentication
      • Token
    • Blocks
      • Retrieve a block
        GET
      • Update a block
        PATCH
      • Retrieve block children
        GET
      • Delete a block
        DELETE
      • Append block children
        PATCH
    • Databases
      • Filter database entries
      • Sort database entries
      • Update database properties
      • Retrieve a database
      • Update a database
      • Query a database
      • Create a database
    • Pages
      • Archive a page
      • Retrieve a Page
      • Update Page properties
      • Retrieve a page property item
      • Create a page
    • Users
      • Retrieve a user
      • List all users
      • Retrieve your token's bot user
    • Comments
      • Create comment
      • Retrieve comments
  1. Blocks

Update a block

PATCH
/v1/blocks/{id}
Blocks
This endpoint allows you to update block content. See Full Documentation
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/v1/blocks/Identifier for a Notion block' \
--header 'Content-Type: application/json' \
--data-raw '{
    "paragraph": {
        "text": [
            {
                "text": {
                    "content": "hello to you"
                },
                "type": "text"
            }
        ]
    }
}'
Response Response Example
{
  "object": "block",
  "id": "c02fc1d3-db8b-45c5-a222-27595b15aea7",
  "parent": {
    "type": "page_id",
    "page_id": "59833787-2cf9-4fdf-8782-e53db20768a5"
  },
  "created_time": "2022-03-01T19:05:00.000Z",
  "last_edited_time": "2022-07-06T19:41:00.000Z",
  "created_by": {
    "object": "user",
    "id": "ee5f0f84-409a-440f-983a-a5315961c6e4"
  },
  "last_edited_by": {
    "object": "user",
    "id": "ee5f0f84-409a-440f-983a-a5315961c6e4"
  },
  "has_children": false,
  "archived": false,
  "type": "heading_2",
  "heading_2": {
    "rich_text": [
      {
        "type": "text",
        "text": {
          "content": "Lacinato kale",
          "link": null
        },
        "annotations": {
          "bold": false,
          "italic": false,
          "strikethrough": false,
          "underline": false,
          "code": false,
          "color": "green"
        },
        "plain_text": "Lacinato kale",
        "href": null
      }
    ],
    "color": "default",
    "is_toggleable": false
  }
}

Request

Path Params
id
string 
required
Example:
Identifier for a Notion block
Body Params application/json
paragraph
object 
optional
text
array [object {2}] 
optional
to_do
object 
required
rich_text
array [object {1}] 
required
checked
boolean 
required
Examples

Responses

🟢200200 Success - Update a block
application/json
Body
created_time
string 
optional
Example:
2021-08-06T17:46:00.000Z
has_children
boolean 
optional
Example:
false
id
string 
optional
Example:
4868767d-9029-4b9d-a41b-652ef4c9c7b9
last_edited_time
string 
optional
Example:
2021-08-12T00:12:00.000Z
object
string 
optional
Example:
block
paragraph
object 
optional
text
array [object {5}] 
optional
type
string 
optional
Example:
paragraph
Modified at 2023-04-28 09:13:56
Previous
Retrieve a block
Next
Retrieve block children
Built with