account.change-password
Verify the current password and save a new one.
POST
/api/v1/{locale}/account/change-passwordAPI scope account.change-password
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 |
|---|---|---|---|
current_password | string | Required | Current account password. |
new_password | string | Required | New password, up to 72 bytes. |
confirm_password | string | Required | Repeat the new 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 '{
"current_password": "<current_password>",
"new_password": "<new password>",
"confirm_password": "<new password>"
}' \
"${MINEXON_BASE_URL}/api/v1/en/account/change-password"Response
HTTP 200 · application/json
| Field | Type | Requirement | Description |
|---|---|---|---|
next | string | Required | Next location returned by the CMS or provider. |
notices | string[] | Conditional | Success and state codes. |
error | string | Conditional | Error code. |
errors | string[] | Conditional | Field 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
| 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. |
screen | string | Conditional | Current screen in the account flow. |
member | object or null | Conditional | Signed-in account. |
pendingEmailChange | object or null | Conditional | New address and timestamps, without the request ID. |
twoFactorEnrolled | boolean | Conditional | Two-factor enrollment status. |
twoFactorKey | string or null | Conditional | Temporary enrollment key when setting up two-factor authentication. |
twoFactorRecoveryCodes | array | Conditional | Recovery codes offered once after enrollment. |
twoFactorHasPassword | boolean | Conditional | Whether setup requires the current password. |
providerReadiness | array or object | Conditional | Provider readiness for the current flow. |
enabledProviders | array or object | Conditional | Enabled providers. |
accountProviders | array or object | Conditional | Provider catalog and display labels. |
identities | array | Conditional | Provider identities linked to the account. |
walletHistory | array | Conditional | Balance history. |
storeOrders | array | Conditional | Order summary when available. |
supportTickets | array | Conditional | Account support tickets. |
supportReplies | array | Conditional | Account support replies. |
inventoryQuantity | integer or null | Conditional | Unused inventory quantity. |
applications | array or object | Conditional | Application records. |
newsHistory | object | Conditional | Like and comment history. |
member.id | integer | Conditional | Field from this record, when available. |
member.username | string or null | Conditional | Field from this record, when available. |
member.email | string or null | Conditional | Field from this record, when available. |
member.email_verified_at | string or null | Conditional | Field from this record, when available. |
member.email_verification_required | boolean | Conditional | Field from this record, when available. |
member.created_at | string or null | Conditional | Field from this record, when available. |
member.last_login_at | string or null | Conditional | Field from this record, when available. |
member.wallet | object or array | Conditional | Field from this record, when available. |
member.community_role_badges | array or object | Conditional | Role badges shown for the player. |
member.community_roles | array or object | Conditional | Field from this record, when available. |