enable Two Factor With Id
POST {{baseUrl}}/api/user/two-factor/:userId
Enable two-factor authentication for a user.
Request Body
{"applicationId"=>"<uuid>", "authenticatorId"=>"<string>", "code"=>"<string>", "email"=>"<string>", "method"=>"<string>", "mobilePhone"=>"<string>", "secret"=>"<string>", "secretBase32Encoded"=>"<string>", "twoFactorId"=>"<string>", "eventInfo"=>{"deviceDescription"=>"<string>", "deviceName"=>"<string>", "deviceType"=>"<string>", "ipAddress"=>"<string>", "location"=>{"city"=>"<string>", "country"=>"<string>", "latitude"=>"<double>", "longitude"=>"<double>", "region"=>"<string>", "zipcode"=>"<string>", "displayString"=>"<string>"}, "os"=>"<string>", "userAgent"=>"<string>"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"code":"\u003cstring\u003e","recoveryCodes":["\u003cstring\u003e","\u003cstring\u003e"]}