POST api/lead/lendingtree

Request Information

URI Parameters

None.

Body Parameters

LendingTreeModel
NameDescriptionTypeAdditional information
agentId

integer

None.

firstName

string

None.

lastName

string

None.

email

string

None.

phone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "agentId": 1,
  "firstName": "sample string 2",
  "lastName": "sample string 3",
  "email": "sample string 4",
  "phone": "sample string 5"
}

text/html

Sample:
{"agentId":1,"firstName":"sample string 2","lastName":"sample string 3","email":"sample string 4","phone":"sample string 5"}

application/xml, text/xml

Sample:
<LendingTreeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <AgentId>1</AgentId>
  <Email>sample string 4</Email>
  <FirstName>sample string 2</FirstName>
  <LastName>sample string 3</LastName>
  <Phone>sample string 5</Phone>
</LendingTreeModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.