POST api/Accounts/Post

Creates an Account.

Request Information

Parameters

NameDescriptionAdditional information
account
The Account to be created

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Email": "sample string 2",
  "Password": "sample string 3",
  "Code": "sample string 4"
}

application/xml, text/xml

Sample:
<Account xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CapitalPlanner.Data.Models">
  <Code>sample string 4</Code>
  <Email>sample string 2</Email>
  <ID>1</ID>
  <Password>sample string 3</Password>
</Account>

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 'Account'.