support.upload-image
Uploads an image for use in the support editor.
POST
/api/v1/{locale}/support/imagesAPI scope support.upload-image
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. |
Request body
| Field | Type | Requirement | Description |
|---|---|---|---|
image | file | Required | Image 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
| Field | Type | Requirement | Description |
|---|---|---|---|
url | string | Required | Image URL to insert in the editor. |
{
"url": "/_support/images/0123456789abcdef0123456789abcdef"
}Flow and error cases
HTTP 422 · application/json
{
"error": "image"
}