IntegrationsNotionActions
Create Notion comment
Create a Notion comment with strict rich text content.
comments.create · Notion · v1
Details
Scopes
insert_comments
Input
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false; oneOf branch 1: required rich_text, parent / branch 2: required rich_text, discussion_id |
parent | object | No | additionalProperties false; oneOf branch 1: required page_id / branch 2: required block_id |
parent.page_id | string | No | minLength 1; maxLength 64 |
parent.block_id | string | No | minLength 1; maxLength 64 |
discussion_id | string | No | minLength 1; maxLength 64 |
rich_text | array<object> | Yes | maxItems 100 |
rich_text[] | object | Yes | additionalProperties false |
rich_text[].type | string | Yes | enum text |
rich_text[].text | object | Yes | additionalProperties false |
rich_text[].text.content | string | Yes | minLength 1; maxLength 2000 |
rich_text[].text.link | object | No | additionalProperties false |
rich_text[].text.link.url | string | Yes | minLength 8; maxLength 2048; pattern ^https://; format uri |
rich_text[].annotations | object | No | additionalProperties false |
rich_text[].annotations.bold | boolean | No | — |
rich_text[].annotations.italic | boolean | No | — |
rich_text[].annotations.strikethrough | boolean | No | — |
rich_text[].annotations.underline | boolean | No | — |
rich_text[].annotations.code | boolean | No | — |
Output
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
id | string | Yes | minLength 1; maxLength 64 |
object | string | Yes | minLength 1; maxLength 64 |
discussion_id | string | No | minLength 1; maxLength 64 |
rich_text | array<object> | No | maxItems 100 |
rich_text[] | object | Yes | additionalProperties false |
rich_text[].plain_text | string | Yes | maxLength 2000 |
rich_text[].href | string | No | maxLength 2048 |
Raw schema
Input
{
"type": "object",
"additionalProperties": false,
"properties": {
"parent": {
"type": "object",
"additionalProperties": false,
"properties": {
"page_id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"block_id": {
"type": "string",
"minLength": 1,
"maxLength": 64
}
},
"oneOf": [
{
"required": [
"page_id"
]
},
{
"required": [
"block_id"
]
}
]
},
"discussion_id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"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
}
},
"required": [
"rich_text"
],
"oneOf": [
{
"required": [
"rich_text",
"parent"
]
},
{
"required": [
"rich_text",
"discussion_id"
]
}
]
}Output
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"object": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"discussion_id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"rich_text": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"plain_text": {
"type": "string",
"maxLength": 2000
},
"href": {
"type": "string",
"maxLength": 2048
}
},
"required": [
"plain_text"
]
},
"maxItems": 100
}
},
"required": [
"id",
"object"
]
}