Skip to Content
MinexonMinexon

forum.upload-image

Upload an editor image for a writable topic or category.

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

API scope forum.upload-image

Request

Send Authorization: Bearer <key> with each request.

Requires a signed-in player and applicable permission.

Path parameters

FieldTypeRequirementDescription
localetr or enRequiredRequest locale.

Query parameters

FieldTypeRequirementDescription
operationcreate | reply | edit | edit-replyRequiredEditor operation that will use this image.
slugstringOptionalTopic slug when replying or editing.
replyIdintegerOptionalReply ID when editing a reply.

Request body

FieldTypeRequirementDescription
imagefileRequiredImage file sent with multipart/form-data.
categorystringOptionalWritable category slug when operation=create.

Run samples from your application server. See Quickstart for variables and sessions.

Request with a file

curl --fail-with-body --request POST \
  -H "Authorization: Bearer $MINEXON_API_KEY" \
  -b "$MINEXON_COOKIE_JAR" -c "$MINEXON_COOKIE_JAR" \
  --form-string category=announcements \
  --form [email protected] \
  "${MINEXON_BASE_URL}/api/v1/en/forum/images?operation=create"

Response

HTTP 201 · application/json

FieldTypeRequirementDescription
urlstringRequiredImage URL to insert in the editor.
{
  "url": "/_forum/images/0123456789abcdef0123456789abcdef"
}

Flow and error cases

Invalid images return 422; upload limits can return 429. The response body can be an empty JSON array.

HTTP 422 · application/json

{
  "error": "category"
}

Shared error and authentication contract