Adds a reply to a topic (same rules as REST).
- Ability
clanbite-forums/create-reply- Label
- Create forum reply
- Category
- Access
- Checked by a permission callback
Input
| Property | Type | Description |
|---|---|---|
topic_id required | integer | Topic ID. |
content required | string | Reply HTML content. |
parent_id | integer | Optional parent reply ID for threading. |
JSON Schema
{
"type": "object",
"properties": {
"topic_id": {
"type": "integer",
"description": "Topic ID."
},
"content": {
"type": "string",
"description": "Reply HTML content."
},
"parent_id": {
"type": "integer",
"description": "Optional parent reply ID for threading."
}
},
"required": [
"topic_id",
"content"
]
}Output
Serialized reply (same shape as REST).
Type: object
JSON Schema
{
"type": "object",
"description": "Serialized reply (same shape as REST)."
}Defined in inc/Forums/Forum_Abilities.php