Skip to Content
MinexonMinexon

forum.create

Create a topic in a category where the player can post.

POST/api/v1/{locale}/forum/topics

API scope forum.create

Request

Send Authorization: Bearer <key> with each request.

Requires a signed-in player and applicable permission.

Path parameters

FieldTypeRequirementDescription
localetr or enRequiredRequest locale.

Request body

FieldTypeRequirementDescription
categorystringRequiredWritable category slug.
titlestringRequiredTopic title, 5–100 characters.
bodystringRequiredText or accepted HTML with 10–3,000 characters of body text.
body_formattext | htmlOptionalSet html for a formatted body.
_submissionstringRequiredThe form response’s submission value. Reuse it when retrying the same logical submission.
minexon_captcha_responsestringOptionalValid widget response when CAPTCHA is enabled for this flow.

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 '{
  "category": "announcements",
  "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"

Response

HTTP 200 · application/json

FieldTypeRequirementDescription
nextstringRequiredNext location returned by the CMS or provider.
noticesstring[]ConditionalSuccess and state codes.
errorstringConditionalError code.
errorsstring[]ConditionalField 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
FieldTypeRequirementDescription
localestringRequiredResponse locale.
errorstring or nullConditionalAction error. Can be empty on success.
errorsarray or objectConditionalField or form validation errors.
noticestring or nullConditionalAction notice.
categoriesarray or objectConditionalAvailable categories or a map keyed by category.
categoryTrailsarray or objectConditionalCategory paths.
valuesobjectConditionalCurrent form values.
editingTopicobject or nullConditionalTopic being edited.
canManageEditbooleanConditionalModerator edit permission.
submissionstringConditionalSubmit as _submission for the same form.

Flow and error cases

If approval is required, a successful submission enters moderation.

Shared error and authentication contract