POST api/LeadMagnet

Request Information

URI Parameters

None.

Body Parameters

LeadMagnetModel
NameDescriptionTypeAdditional information
sourceUrl

string

None.

agentId

integer

None.

firstName

string

None.

lastName

string

None.

email

string

None.

phone

string

None.

Request Formats

application/json, text/json

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

text/html

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

application/xml, text/xml

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

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.