update_auth_params

To change two-factor authentication settings, use the following command:

Copied!
svc=user/update_auth_params&params={"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

Copied!
{
    "type":<uint>,
    "phone":"<text>"
}

Error codes

Error codeDescription
7Failed to fetch user with ACL (ADF_ACL_ITEM_EDIT_PROPERTIES), or user not found, or incorrect parameters provided.
6Failed to set new authentication parameters.
Download PDF file
Download Word document

See also