POST api/2fa/enable
h1>
Request Information
URI Parameters
None.
Body Parameters
DtoToggle2FARequest
Name Description Type Additional information
UserId
integer
None.
Method
string
None.
ContactValue
string
None.
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"Method": "sample string 2",
"ContactValue": "sample string 3"
}
application/xml, text/xml
Sample:
<DtoToggle2FARequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Icodex.UserManagement.Services.Interfaces.Request.Dto.TwoFactor">
<ContactValue>sample string 3</ContactValue>
<Method>sample string 2</Method>
<UserId>1</UserId>
</DtoToggle2FARequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResult None.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.
Request Information
URI Parameters
None.
Body Parameters
DtoToggle2FARequest| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | integer |
None. |
|
| Method | string |
None. |
|
| ContactValue | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"Method": "sample string 2",
"ContactValue": "sample string 3"
}
application/xml, text/xml
Sample:
<DtoToggle2FARequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Icodex.UserManagement.Services.Interfaces.Request.Dto.TwoFactor"> <ContactValue>sample string 3</ContactValue> <Method>sample string 2</Method> <UserId>1</UserId> </DtoToggle2FARequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.