Skip to Content
MinexonMinexon

account.update

Start an email change by sending a verification code to the new address.

POST/api/v1/{locale}/account/settings

API scope account.update

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
emailstringRequiredNew email address.
current_passwordstringRequiredCurrent account password.

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 '{
  "email": "[email protected]",
  "current_password": "<current_password>"
}' \
  "${MINEXON_BASE_URL}/api/v1/en/account/settings"

Response

HTTP 200 · application/json

FieldTypeRequirementDescription
nextstringRequiredNext location returned by the CMS or provider.
noticesstring[]ConditionalSuccess and state codes.
errorstringConditionalError code.
errorsstring[]ConditionalField or operation error codes.
{
  "next": "<next URL returned by CMS>"
}

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.
screenstringConditionalCurrent screen in the account flow.
memberobject or nullConditionalSigned-in account.
pendingEmailChangeobject or nullConditionalNew address and timestamps, without the request ID.
twoFactorEnrolledbooleanConditionalTwo-factor enrollment status.
twoFactorKeystring or nullConditionalTemporary enrollment key when setting up two-factor authentication.
twoFactorRecoveryCodesarrayConditionalRecovery codes offered once after enrollment.
twoFactorHasPasswordbooleanConditionalWhether setup requires the current password.
providerReadinessarray or objectConditionalProvider readiness for the current flow.
enabledProvidersarray or objectConditionalEnabled providers.
accountProvidersarray or objectConditionalProvider catalog and display labels.
identitiesarrayConditionalProvider identities linked to the account.
walletHistoryarrayConditionalBalance history.
storeOrdersarrayConditionalOrder summary when available.
supportTicketsarrayConditionalAccount support tickets.
supportRepliesarrayConditionalAccount support replies.
inventoryQuantityinteger or nullConditionalUnused inventory quantity.
applicationsarray or objectConditionalApplication records.
newsHistoryobjectConditionalLike and comment history.
member.idintegerConditionalField from this record, when available.
member.usernamestring or nullConditionalField from this record, when available.
member.emailstring or nullConditionalField from this record, when available.
member.email_verified_atstring or nullConditionalField from this record, when available.
member.email_verification_requiredbooleanConditionalField from this record, when available.
member.created_atstring or nullConditionalField from this record, when available.
member.last_login_atstring or nullConditionalField from this record, when available.
member.walletobject or arrayConditionalField from this record, when available.
member.community_role_badgesarray or objectConditionalRole badges shown for the player.
member.community_rolesarray or objectConditionalField from this record, when available.

Flow and error cases

Shared error and authentication contract