POST Api/Account

Request Information

URI Parameters

None.

Body Parameters

LoginModel
NameDescriptionTypeAdditional information
UserName

string

Required

Password

string

Required

String length: inclusive between 6 and 24

PersistentLogin

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2",
  "PersistentLogin": true
}

application/xml, text/xml

Sample:
<LoginModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiDynamics.Models">
  <Password>sample string 2</Password>
  <PersistentLogin>true</PersistentLogin>
  <UserName>sample string 1</UserName>
</LoginModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LoginModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.