IntegrationsNotionActions
Append Notion block children
Append strict text blocks under a Notion block or page parent.
blocks.children.append · Notion · v1
Details
Scopes
insert_content
Input
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
block_id | string | Yes | minLength 1; maxLength 64 |
children | array<object> | Yes | minItems 1; maxItems 100 |
children[] | object | Yes | additionalProperties false |
children[].type | string | Yes | enum paragraph | heading_1 | heading_2 | heading_3 | bulleted_list_item | numbered_list_item | to_do | quote | toggle |
children[].rich_text | array<object> | Yes | maxItems 100 |
children[].rich_text[] | object | Yes | additionalProperties false |
children[].rich_text[].type | string | Yes | enum text |
children[].rich_text[].text | object | Yes | additionalProperties false |
children[].rich_text[].text.content | string | Yes | minLength 1; maxLength 2000 |
children[].rich_text[].text.link | object | No | additionalProperties false |
children[].rich_text[].text.link.url | string | Yes | minLength 8; maxLength 2048; pattern ^https://; format uri |
children[].rich_text[].annotations | object | No | additionalProperties false |
children[].rich_text[].annotations.bold | boolean | No | — |
children[].rich_text[].annotations.italic | boolean | No | — |
children[].rich_text[].annotations.strikethrough | boolean | No | — |
children[].rich_text[].annotations.underline | boolean | No | — |
children[].rich_text[].annotations.code | boolean | No | — |
children[].checked | boolean | No | — |
position | object | No | additionalProperties false |
position.type | string | Yes | enum start | end | after_block |
position.after_block | object | No | additionalProperties false |
position.after_block.id | string | Yes | minLength 1; maxLength 64 |
Output
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
results | array<object> | Yes | maxItems 100 |
results[] | object | Yes | additionalProperties false |
results[].id | string | Yes | minLength 1; maxLength 64 |
results[].type | string | Yes | minLength 1; maxLength 64 |
results[].has_children | boolean | No | — |
next_cursor | string | No | minLength 1; maxLength 512 |
has_more | boolean | No | — |
Raw schema
Input
{
"type": "object",
"additionalProperties": false,
"properties": {
"block_id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"children": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"paragraph",
"heading_1",
"heading_2",
"heading_3",
"bulleted_list_item",
"numbered_list_item",
"to_do",
"quote",
"toggle"
]
},
"rich_text": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "object",
"additionalProperties": false,
"properties": {
"content": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"link": {
"type": "object",
"additionalProperties": false,
"properties": {
"url": {
"type": "string",
"minLength": 8,
"maxLength": 2048,
"pattern": "^https://",
"format": "uri"
}
},
"required": [
"url"
]
}
},
"required": [
"content"
]
},
"annotations": {
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strikethrough": {
"type": "boolean"
},
"underline": {
"type": "boolean"
},
"code": {
"type": "boolean"
}
}
}
},
"required": [
"type",
"text"
]
},
"maxItems": 100
},
"checked": {
"type": "boolean"
}
},
"required": [
"type",
"rich_text"
]
},
"minItems": 1,
"maxItems": 100
},
"position": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"start",
"end",
"after_block"
]
},
"after_block": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64
}
},
"required": [
"id"
]
}
},
"required": [
"type"
]
}
},
"required": [
"block_id",
"children"
]
}Output
{
"type": "object",
"additionalProperties": false,
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"type": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"has_children": {
"type": "boolean"
}
},
"required": [
"id",
"type"
]
},
"maxItems": 100
},
"next_cursor": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"has_more": {
"type": "boolean"
}
},
"required": [
"results"
]
}