support.create
Opens a support ticket for the current player.
POST
/api/v1/{locale}/support/ticketsAPI scope support.create
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 |
|---|---|---|---|
category | integer | Required | ID of a visible support category. |
priority | string | Optional | low, normal or high. |
subject | string | Required | Subject, 5–120 characters. |
message | string | Required | Plain-text or HTML message. |
body_format | string | Optional | Use html to submit rich text. |
_submission | string | Required | The form’s submission value. Preserve it when retrying the same submission. |
attachments | file[] | Optional | Send attachments as attachments[] in a multipart request. |
minexon_captcha_response | string | Optional | Verification token when operation discovery includes captcha.support_create. |
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": 1,
"subject": "Connection times out",
"message": "The connection timed out while opening the survival world.",
"body_format": "text",
"_submission": "<submission from GET>"
}' \
"${MINEXON_BASE_URL}/api/v1/en/support/tickets"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=1 \
--form-string 'subject=Connection times out' \
--form-string 'message=The connection timed out while opening the survival world.' \
--form-string body_format=text \
--form-string '_submission=<submission from GET>' \
--form 'attachments[][email protected]' \
"${MINEXON_BASE_URL}/api/v1/en/support/tickets"Response
HTTP 200 · application/json
| Field | Type | Requirement | Description |
|---|---|---|---|
next | string | Required | URL of the next player page. |
notices | array | Conditional | Operation notice codes, when present. |
error | string | Conditional | Error code. |
errors | string[] | Conditional | Field or operation error codes. |
{
"next": "/en/support/42"
}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
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | string | Required | Response locale. |
error | string or null | Conditional | Action error. Can be empty on success. |
errors | array or object | Conditional | Field or form validation errors. |
notice | string or null | Conditional | Action notice. |
categories | array or object | Conditional | Available categories or a map keyed by category. |
attachmentLimits | object | Conditional | File count and file size limits. |
activeCount | integer | Conditional | Number of active tickets for the player. |
activeLimit | integer | Conditional | Open-ticket limit per player. |
priorities | JSON value | Conditional | Value determined by screen and configuration. |
subjectLimit | integer | Conditional | Ticket subject length limit. |
showForm | boolean | Conditional | Whether the support form can be used. |
submission | string | Conditional | Submit as _submission for the same form. |
messageLimit | integer | Conditional | Ticket message length limit. |
Flow and error cases
Validation errors return HTTP 422 with a form view containing data.errors.