-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_notion_test.http
88 lines (83 loc) · 2.7 KB
/
_notion_test.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
POST https://api.notion.com/v1/pages
Authorization: Bearer {{$dotenv NOTION_ACCESS_KEY}}
Notion-Version: 2022-06-28
Content-Type: application/json
{
"parent": { "type": "page_id", "page_id": "{{$dotenv NOTION_DATABASE_ID}}" },
"properties": {
"title": {
"title": [
{"type": "text", "text": {"content": "My title"}}
]
}
},
"children": [
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [
{
"type": "text",
"text": {
"content": "Lacinato kale is a variety of kale with a long tradition in Italian cuisine, especially that of Tuscany. It is also known as Tuscan kale, Italian kale, dinosaur kale, kale, flat back kale, palm tree kale, or black Tuscan palm.",
"link": { "url": "https://en.wikipedia.org/wiki/Lacinato_kale" }
}
}
]
}
}
]
}
###
POST https://api.notion.com/v1/pages
Authorization: Bearer {{$dotenv NOTION_ACCESS_KEY}}
Notion-Version: 2022-06-28
Content-Type: application/json
{
"parent": { "type": "database_id", "database_id": "{{$dotenv NOTION_DATABASE_ID}}" },
"properties": {
"title": {
"title": [
{"type": "text", "text": {"content": "My title"}}
]
},
"Created": {
"date": { "start": "2020-12-08T12:00:00Z"}
},
"Edited": {
"date": { "start": "2020-12-08T12:00:00Z"}
},
"Tags": {
"multi_select": [
{ "name": "archived" }
]
}
},
"children": [
{
"type": "image",
"image": {
"type": "external",
"external": {
"url": "https://image-server.mustakim.dev/ae33100e-988e-47f4-aa18-7e9a5c4a0ebb.png"
}
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [
{
"type": "text",
"text": {
"content": "Lacinato kale is a variety of kale with a long tradition in Italian cuisine, especially that of Tuscany. It is also known as Tuscan kale, Italian kale, dinosaur kale, kale, flat back kale, palm tree kale, or black Tuscan palm.",
"link": { "url": "https://en.wikipedia.org/wiki/Lacinato_kale" }
}
}
]
}
}
]
}