Skip to Content
MinexonMinexon

forum.reply-edit

Update the body of a reply the player may edit.

POST/api/v1/{locale}/forum/topics/{slug}/replies/{replyId}/edit

API scope forum.reply-edit

Request

Send Authorization: Bearer <key> with each request.

Requires a signed-in player and applicable permission.

Path parameters

FieldTypeRequirementDescription
localetr or enRequiredRequest locale.
slugstringRequiredURL slug of the resource.
replyIdintegerRequiredID of a reply in this topic.

Request body

FieldTypeRequirementDescription
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.

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

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.
topicobjectConditionalTopic data and related replies.
replyIdintegerConditionalReply ID.
bodystringConditionalText body.
bodyHtmlstring or nullConditionalFormatted body HTML.
needsReviewbooleanConditionalWhether the edit requires review.
submissionstringConditionalSubmit as _submission for the same form.

Flow and error cases

Shared error and authentication contract