spec/fixtures/notion/create_page.yml in notion-ruby-client-0.1.0.pre.beta1 vs spec/fixtures/notion/create_page.yml in notion-ruby-client-1.0.0.pre.beta1
- old
+ new
@@ -4,20 +4,20 @@
method: post
uri: https://api.notion.com/v1/pages
body:
encoding: UTF-8
string: '{"parent":{"database_id":"dd428e9d-d3fe-4171-870d-a7a1902c748b"},"properties":{"Name":{"title":[{"text":{"content":"Another
- Notion page"}}]}},"children":[{"object":"block","type":"heading_2","heading_2":{"text":[{"type":"text","text":{"content":"A
+ Notion page"}}]}},"children":[{"object":"block","type":"heading_2","heading_2":{"rich_text":[{"type":"text","text":{"content":"A
heading"}}]}}]}'
headers:
Accept:
- application/json; charset=utf-8
User-Agent:
- Notion Ruby Client/0.0.8
Authorization:
- Bearer <NOTION_API_TOKEN>
Notion-Version:
- - '2021-08-16'
+ - '2022-02-22'
Content-Type:
- application/json
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
response: