create_comment
Add comments to discussions in Storyblok spaces using structured JSON or plain text. Integrates with the Storyblok Management API to enhance collaborative workflows.
Instructions
Adds a comment to a discussion via the Storyblok Management API.
- discussion_id: Numeric ID of the discussion.
- message_json: Required array of message objects. Each must include "type", "text", and "attrs".
- message: Optional plain-text field (can be null or string).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
discussion_id | Yes | ||
message | No | ||
message_json | Yes |
Input Schema (JSON Schema)
{
"properties": {
"discussion_id": {
"title": "Discussion Id",
"type": "integer"
},
"message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Message"
},
"message_json": {
"items": {
"additionalProperties": true,
"type": "object"
},
"title": "Message Json",
"type": "array"
}
},
"required": [
"discussion_id",
"message_json"
],
"title": "create_commentArguments",
"type": "object"
}