Skip to Content
MinexonMinexon

applications.submit

Submits the player’s answers to an application form.

POST/api/v1/{locale}/applications/{slug}

API scope applications.submit

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.

Request body

FieldTypeRequirementDescription
revisionintegerRequiredThe form operation’s application.revision value.
answersobjectRequiredString answers keyed by question key. Required questions and accepted values depend on the form.

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 '{
  "revision": 1,
  "answers": {
    "q1": "Friday evenings"
  }
}' \
  "${MINEXON_BASE_URL}/api/v1/en/applications/example"

Response

HTTP 200 · application/json

FieldTypeRequirementDescription
nextstringRequiredURL of the next player page.
noticesstring[]ConditionalSuccess and state codes.
errorstringConditionalError code.
errorsstring[]ConditionalField or operation error codes.
{
  "next": "/en/my-applications"
}

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.
applicationJSON valueConditionalValue determined by screen and configuration.
existingJSON valueConditionalValue determined by screen and configuration.
application.questions[].keystringConditionalQuestion key for the answers object.
application.questions[].typestringConditionalQuestion input type.
application.questions[].labelstringConditionalQuestion text to display.
application.questions[].optionsstring[]ConditionalAccepted values for choice questions.
application.questions[].requiredbooleanConditionalWhether the question is required.

Flow and error cases

On success or a duplicate submission, next points to application history. Form or answer errors can return HTTP 422 with data.error.

Shared error and authentication contract