POST api/People

Request Information

URI Parameters

None.

Body Parameters

PersonViewModel
NameDescriptionTypeAdditional information
Email

string

Required

String length: inclusive between 0 and 350

Password

string

Data type: Password

String length: inclusive between 6 and 100

ConfirmPassword

string

Data type: Password

Id

string

None.

FirstName

string

Required

String length: inclusive between 0 and 200

LastName

string

Required

String length: inclusive between 0 and 200

PhoneNumber

string

String length: inclusive between 0 and 100

IsResettingPassword

boolean

None.

IsActive

boolean

None.

ApplicationUserId

string

None.

Address

string

String length: inclusive between 0 and 500

Address2

string

String length: inclusive between 0 and 500

City

string

String length: inclusive between 0 and 500

State

string

String length: inclusive between 0 and 50

Zip

string

String length: inclusive between 0 and 20

Country

string

String length: inclusive between 0 and 200

CarIds

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "email": "sample string 1",
  "password": "sample string 2",
  "confirmPassword": "sample string 3",
  "id": "sample string 4",
  "firstName": "sample string 5",
  "lastName": "sample string 6",
  "phoneNumber": "sample string 7",
  "isResettingPassword": true,
  "isActive": true,
  "applicationUserId": "sample string 10",
  "address": "sample string 11",
  "address2": "sample string 12",
  "city": "sample string 13",
  "state": "sample string 14",
  "zip": "sample string 15",
  "country": "sample string 16",
  "carIds": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<PersonViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Business.ViewModels.Persons">
  <Address xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 11</Address>
  <Address2 xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 12</Address2>
  <ApplicationUserId xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 10</ApplicationUserId>
  <CarIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </CarIds>
  <City xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 13</City>
  <ConfirmPassword xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 3</ConfirmPassword>
  <Country xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 16</Country>
  <Email xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 1</Email>
  <FirstName xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 5</FirstName>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 4</Id>
  <IsActive xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">true</IsActive>
  <IsResettingPassword xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">true</IsResettingPassword>
  <LastName xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 6</LastName>
  <Password xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 2</Password>
  <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 7</PhoneNumber>
  <State xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 14</State>
  <Zip xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 15</Zip>
</PersonViewModel>

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.