update_comment
Modify existing comments in Storyblok discussions by providing a discussion ID, comment ID, and updated message content in JSON format. Ensures accurate collaboration and content management.
Instructions
Updates a comment in a discussion via the Storyblok Management API.
Required:
- discussion_id: Numeric ID of the discussion.
- comment_id: Numeric ID of the comment.
Payload:
- message_json: Required. Array of message objects, each with keys "type", "text", "attrs".
- message: Optional string or null.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
comment_id | Yes | ||
discussion_id | Yes | ||
message | No | ||
message_json | Yes |
Input Schema (JSON Schema)
{
"properties": {
"comment_id": {
"title": "Comment Id",
"type": "integer"
},
"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",
"comment_id",
"message_json"
],
"title": "update_commentArguments",
"type": "object"
}