SUBMIT_COMMENT
The SUBMIT_COMMENT handler allows users to create, edit, or reply to comments on a post. It validates user information and ensures the content meets specified requirements.
Interaction Format
To interact with this handler, use the following format:
Input Parameters
Field
Type
Required
Description
post_id
String
Yes
The unique ID of the post.
content
String
Yes
The content of the comment (max 1000 characters).
parent_comment_id
String
No
The ID of the parent comment for replies.
comment_id
String
No
The ID of the comment to edit.
Validations
post_id: Must be provided and correspond to a valid post.
content: Must not exceed 1000 characters.
parent_comment_id: If provided, must exist and belong to the same post.
comment_id: If provided, must correspond to an existing comment and be editable by the user.
Response Format
Success
Error
Last updated