Configure two-factor authentication

PUT {{baseUrl}}/users/:user_id/two-factor

Enables or disables a user's two-factor authentication settings.

Note: The workflow for two-factor authentication is as follows:

  1. Send a verification code.
  2. Validate the verification code.
  3. Configure two-factor authentication.

Requires ADMINISTRATOR [64] user permissions. See Permissions.

Request Body

{"email_enabled"=>false, "sms_enabled"=>true, "sms_phone"=>"+155555555555"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{}