Xsolla-logo

Update user's two-factor authentication settingsServer-side

post/projects/{project_id}/users/{user_id}/mfa

Updates user's two-factor authentication settings from server.

SecurityServer
Request
path Parameters
user_id
required
string <uuid>

User ID. You can find it in Publisher Account > your Login project > Users.

project_id
required
string <uuid>

Login project ID from Publisher Account.

Request Body schema: application/json
mfa_type
required
string

Type of the second factor. Can be: email or sms. You must enable the specified type for the Login project. Contact your Customer Success Manager to set it up.

Enum: "email" "sms"
change_restricted
boolean
Default: false

Status of two-factor authentication change restriction. Set true value for enabling, and false value otherwise.

enabled
boolean
Default: false

Status of two-factor authentication settings. Set true value for enabling, and false value otherwise.

Responses
204

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

422

Unprocessable Entity

Request samples
application/json
{
  • "change_restricted": true,
  • "enabled": true,
  • "mfa_type": "email"
}
Response samples
{
  • "error": {
    }
}