update_auth_params
To change two-factor authentication settings, use the following method:
svc=user/update_auth_params¶ms={"userId":<long>,
"type":<int>,
"phone":"<text>"}
Parameters
The required parameters are marked with an asterisk (*).
| Name | Description |
|---|---|
| userId* | User ID. |
| type* | Type (0 for none, 1 for email, 2 for SMS ). |
| phone | Phone number (if type:2). |
Response
{
"type":<uint>,
"phone":"<text>"
}
Error codes
| Error code | Description |
|---|---|
| 7 | Failed to fetch user with ACL (ADF_ACL_ITEM_EDIT_PROPERTIES), or user not found, or incorrect parameters provided. |
| 6 | Failed to set new authentication parameters. |