Heading 2 を表します。{
"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
}
}📘
* でマークされたフィールドは、すべての機能との統合で使用できます。他のプロパティは、Notion API から返されるためにコンテンツ読み取り機能を必要とします。詳細については、統合機能のリファレンスを参照してください。
| フィールド | タイプ | 説明 | 例の値 |
|---|---|---|---|
object* | string | 常に"block" | "block" |
id* | string(UUIDv4) | ブロックの識別子。 | "7af38973-3787-41b3-bd75-0ed3a1edfac9" |
parent | object | ブロックの親に関する情報。親オブジェクト を参照してください。 | { "type": "block_id", "block_id": "7d50a184-5bbe-4d90-8f29-6bec57ed817b" } |
type | string(列挙型) | ブロックのタイプ。可能な値は次 の とおり です 。 - - - - - - - - - - - - - - - - - - - - - - - - - - -"bookmark" "breadcrumb" "bulleted_list_item" "callout" "child_database" "child_page" "column" "column_list" "divider" "embed" "equation" "file" "heading_1" "heading_2" "heading_3" "image" "link_preview" "link_to_page" "numbered_list_item" "paragraph" "pdf" "quote" "synced_block" "table" "table_of_contents" "table_row" "template" "to_do" "toggle" "unsupported" "video" | "paragraph" |
created_time | string( ISO 8601 日時) | このブロックが作成された日時。ISO 8601 日時文字列としてフォーマットされます。 | "2020-03-17T19:10:04.968Z" |
created_by | 部分的なユーザー | ブロックを作成したユーザー。 | {"object": "user","id": "45ee8d13-687b-47ce-a5ca-6e2e45548c4b"} |
last_edited_time | string( ISO 8601 日時) | このブロックが最後に更新された日時。ISO 8601 日時文字列としてフォーマットされます。 | "2020-03-17T19:10:04.968Z" |
last_edited_by | 部分的なユーザー | ブロックを最後に編集したユーザー。 | {"object": "user","id": "45ee8d13-687b-47ce-a5ca-6e2e45548c4b"} |
archived | boolean | ブロックのアーカイブ済みステータス。 | false |
has_children | boolean | ブロックにネストされた子ブロックがあるかどうか。 | true |
{type} | block type object | タイプ固有のブロック情報を含むオブジェクト。 | 各ブロック タイプの例については、ブロック タイプ オブジェクトのセクションを参照してください。 |
📘API はすべてのブロックタイプをサポートしているわけではありません。
以下のリファレンスにリストされているブロック型オブジェクトのみがサポートされています。サポートされていないブロックタイプは 構造体に表示されますが、 "unsupported"に設定されたtypeが含まれています。
typeの値に対応するキーがあります。キーの下には、タイプ固有のブロック情報を持つオブジェクトがあります。bookmarkプロパティ内に次の情報が含まれています。| フィールド | タイプ | 説明 |
|---|---|---|
caption | リッチ テキスト オブジェクトの配列テキスト | ブックマークのキャプションです。 |
url | 列 | ブックマークのリンク先です。 |
{
//...other keys excluded
"type": "bookmark",
//...other keys excluded
"bookmark": {
"caption": [],
"url": "https://companywebsite.com"
}
}breadcrumb{
//...other keys excluded
"type": "breadcrumb",
//...other keys excluded
"breadcrumb": {}
}bulleted_list_itemプロパティ内に次の 情報が含まれています。| フィールド | タイプ | 説明 |
|---|---|---|
rich_text | リッチ テキスト オブジェクトのarray | bulleted_list_itemブロック内のリッチ テキスト。 |
color | string(列挙型) | ブロックの色。可能な値は次のとおり です 。 - - - - - - - - - - - - - - - - - -"blue" "blue_background" "brown" "brown_background" "default" "gray" "gray_background" "green" "green_background" "orange" "orange_background" "yellow" "green" "pink" "pink_background" "purple" "purple_background" "red" "red_background" "yellow_background" |
children | ブロック オブジェクトのarray | bulleted_list_itemブロックのネストされた子ブロック (存在する場合) 。 |
{
//...other keys excluded
"type": "bulleted_list_item",
//...other keys excluded
"bulleted_list_item": {
"rich_text": [{
"type": "text",
"text": {
"content": "Lacinato kale",
"link": null
}
// ..other keys excluded
}],
"color": "default",
"children":[{
"type": "paragraph"
// ..other keys excluded
}]
}
}calloutプロパティ内に次の情報が含まれています。| フィールド | タイプ | 説明 |
|---|---|---|
rich_text | リッチ テキスト オブジェクトのarray | calloutブロック内のリッチ テキスト。 |
icon | object | 吹き出しのアイコンを表す絵文字またはファイルオブジェクト。吹き出しにアイコンがない場合。 |
color | string(列挙型) | ブロックの色。可能な値は次のとおり です 。 - - - - - - - - - - - - - - - - - -"blue" "blue_background" "brown" "brown_background" "default" "gray" "gray_background" "green" "green_background" "orange" "orange_background" "yellow" "green" "pink" "pink_background" "purple" "purple_background" "red" "red_background" "yellow_background" |
{
//...other keys excluded
"type": "callout",
// ..other keys excluded
"callout": {
"rich_text": [{
"type": "text",
"text": {
"content": "Lacinato kale",
"link": null
}
// ..other keys excluded
}],
"icon": {
"emoji": "⭐"
},
"color": "default"
}
}child_database| フィールド | タイプ | 説明 |
|---|---|---|
title | string | データベースのプレーン テキスト タイトル。 |
{
//...other keys excluded
"type": "child_database",
//...other keys excluded
"child_database": {
"title": "My database"
}
}📘
child_databaseブロックの作成と更新child_databaseタイプ ブロックを作成または更新するには、データベースの作成エンドポイントとデータベースの更新エンドポイントを使用し、body パラメーターで親ページの ID を指定します。parent
child_pageプロパティ内に次の情報が含まれています。| フィールド |
|---|