POST api/AgentLead

Request Information

URI Parameters

None.

Body Parameters

AgentLeadModel
NameDescriptionTypeAdditional information
FirstName

string

Required

LastName

string

Required

Email

string

Required

Request Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "Email": "sample string 3"
}

text/html

Sample:
{"FirstName":"sample string 1","LastName":"sample string 2","Email":"sample string 3"}

application/xml, text/xml

Sample:
<AgentLeadController.AgentLeadModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Services.NPlayApi.Controllers">
  <Email>sample string 3</Email>
  <FirstName>sample string 1</FirstName>
  <LastName>sample string 2</LastName>
</AgentLeadController.AgentLeadModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.