delete User Two Factor With Id

DELETE {{baseUrl}}/api/user/two-factor/:userId?methodId=<string>&code=<string>

Disable two-factor authentication for a user using a JSON body rather than URL parameters. OR Disable two-factor authentication for a user.

Request Params

KeyDatatypeRequiredDescription
methodIdstringThe two-factor method identifier you wish to disable
codestringThe two-factor code used verify the the caller knows the two-factor secret.

Request Body

{"applicationId"=>"<uuid>", "code"=>"<string>", "methodId"=>"<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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

&quot;&quot;