Skip to Content
MinexonMinexon

support.upload-image

Uploads an image for use in the support editor.

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

API scope support.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.

Request body

FieldTypeRequirementDescription
imagefileRequiredImage file in a multipart request.

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 [email protected] \
  "${MINEXON_BASE_URL}/api/v1/en/support/images"

Response

HTTP 201 · application/json

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

Flow and error cases

HTTP 422 · application/json

{
  "error": "image"
}

Shared error and authentication contract