forum.edit
Update a topic the current player may edit.
POST
/api/v1/{locale}/forum/topics/{slug}/editAPI scope forum.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. |
Request body
| Field | Type | Requirement | Description |
|---|---|---|---|
title | string | Required | Topic title, 5–100 characters. |
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 '{
"title": "Welcome to the server",
"body": "Here are the opening details.",
"body_format": "text",
"_submission": "<submission from GET>"
}' \
"${MINEXON_BASE_URL}/api/v1/en/forum/topics/example/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. |
categories | array or object | Conditional | Available categories or a map keyed by category. |
categoryTrails | array or object | Conditional | Category paths. |
values | object | Conditional | Current form values. |
editingTopic | object or null | Conditional | Topic being edited. |
canManageEdit | boolean | Conditional | Moderator edit permission. |
submission | string | Conditional | Submit as _submission for the same form. |