Xsolla-logoXsolla Developers
前往发布商帐户

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>

用户ID。您可以在发布商帐户 > 您的登录管理器项目 > 用户中找到它。

project_id
required
string <uuid>

发布商帐户中的登录管理器项目ID。

Request Body schema: application/json
mfa_type
required
string

Type of the second factor. You must enable the specified type for the Login project. Contact your Customer Success Manager to set it up.

Value: "email"
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

双因素认证设置的状态。设置为true值以启用,设置为false值以禁用。

Responses
204

确定

400

错误的请求

401

未授权

403

被禁止

404

未找到

422

无法处理的实体

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