Update a block

PATCH https://api.notion.com/v1/blocks/:id

This endpoint allows you to update block content. See Full Documentation

Request Body

{"paragraph"=>{"rich_text"=>[{"type"=>"text", "text"=>{"content"=>"hello to you"}}]}}

HEADERS

KeyDatatypeRequiredDescription
Notion-Versionstring

RESPONSES

status: OK

{"object":"block","id":"4868767d-9029-4b9d-a41b-652ef4c9c7b9","created_time":"2021-08-06T17:46:00.000Z","last_edited_time":"2021-08-12T00:12:00.000Z","has_children":false,"type":"paragraph","paragraph":{"text":[{"type":"text","text":{"content":"hello to you","link":null},"annotations":{"bold":false,"italic":false,"strikethrough":false,"underline":false,"code":false,"color":"default"},"plain_text":"hello to you","href":null}]}}