forum.reply-edit
Update the body of a reply the player may edit.
POST
/api/v1/{locale}/forum/topics/{slug}/replies/{replyId}/editAPI scope forum.reply-edit
Request
Send Authorization: Bearer <key> with each request.
Requires a signed-in player and applicable permission.
Path parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | tr or en | Required | Request locale. |
slug | string | Required | URL slug of the resource. |
replyId | integer | Required | ID of a reply in this topic. |
Request body
| Field | Type | Requirement | Description |
|---|---|---|---|
body | string | Required | Text or accepted HTML with 10–3,000 characters of body text. |
body_format | text | html | Optional | Set html for a formatted body. |
_submission | string | Required | The form response’s submission value. Reuse it when retrying the same logical submission. |
Run samples from your application server. See Quickstart for variables and sessions.
curl --fail-with-body --request POST \
-H "Authorization: Bearer $MINEXON_API_KEY" \
-b "$MINEXON_COOKIE_JAR" -c "$MINEXON_COOKIE_JAR" \
-H 'Content-Type: application/json' \
--data '{
"body": "Here are the opening details.",
"body_format": "text",
"_submission": "<submission from GET>"
}' \
"${MINEXON_BASE_URL}/api/v1/en/forum/topics/example/replies/42/edit"Response
HTTP 200 · application/json
| Field | Type | Requirement | Description |
|---|---|---|---|
next | string | Required | Next location returned by the CMS or provider. |
notices | string[] | Conditional | Success and state codes. |
error | string | Conditional | Error code. |
errors | string[] | Conditional | Field or operation error codes. |
{
"next": "/en/forum/topic/example"
}When the form is shown again, the response can contain data instead of next. Check the HTTP status and the error fields together.
Form response fields
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | string | Required | Response locale. |
error | string or null | Conditional | Action error. Can be empty on success. |
errors | array or object | Conditional | Field or form validation errors. |
notice | string or null | Conditional | Action notice. |
topic | object | Conditional | Topic data and related replies. |
replyId | integer | Conditional | Reply ID. |
body | string | Conditional | Text body. |
bodyHtml | string or null | Conditional | Formatted body HTML. |
needsReview | boolean | Conditional | Whether the edit requires review. |
submission | string | Conditional | Submit as _submission for the same form. |