POST api/lead/sweepstakeapplication

Request Information

URI Parameters

None.

Body Parameters

SweepstakeApplication
NameDescriptionTypeAdditional information
bonus

boolean

None.

facebookPageId

string

None.

leadActivityType

LeadActivityType

None.

productType

ProductType

None.

sweepstakesId

integer

None.

buyerId

integer

None.

active

boolean

None.

agentId

integer

None.

cookieId

globally unique identifier

None.

email

string

None.

Email_Sort

string

None.

phone

string

None.

id

string

None.

leadActivityTypeDescription

string

None.

LeadActivityTypeDescription_Sort

string

None.

name

string

None.

Name_Sort

string

None.

productTypeDescription

string

None.

ProductTypeDescription_Sort

string

None.

timestamp

date

None.

Request Formats

application/json, text/json

Sample:
{
  "bonus": true,
  "facebookPageId": "sample string 2",
  "leadActivityType": 5,
  "productType": 4,
  "sweepstakesId": 3,
  "buyerId": 1,
  "active": true,
  "agentId": 5,
  "cookieId": "f23c68ed-3a14-4e46-a1d0-f7713997a2ff",
  "email": "sample string 6",
  "Email_Sort": "sample string 6",
  "phone": "sample string 7",
  "id": "sample string 8",
  "leadActivityTypeDescription": "Sweepstake Application",
  "LeadActivityTypeDescription_Sort": "sweepstake application",
  "name": "sample string 9",
  "Name_Sort": "sample string 9",
  "productTypeDescription": "Dream Sweeps",
  "ProductTypeDescription_Sort": "dream sweeps",
  "timestamp": "2021-08-01T05:19:18.1031015+00:00"
}

text/html

Sample:
{"bonus":true,"facebookPageId":"sample string 2","leadActivityType":5,"productType":4,"sweepstakesId":3,"buyerId":1,"active":true,"agentId":5,"cookieId":"f23c68ed-3a14-4e46-a1d0-f7713997a2ff","email":"sample string 6","Email_Sort":"sample string 6","phone":"sample string 7","id":"sample string 8","leadActivityTypeDescription":"Sweepstake Application","LeadActivityTypeDescription_Sort":"sweepstake application","name":"sample string 9","Name_Sort":"sample string 9","productTypeDescription":"Dream Sweeps","ProductTypeDescription_Sort":"dream sweeps","timestamp":"2021-08-01T05:19:18.1031015+00:00"}

application/xml, text/xml

Sample:
<SweepstakeApplication xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">
  <Active>true</Active>
  <AgentId>5</AgentId>
  <BuyerId>1</BuyerId>
  <CookieId>f23c68ed-3a14-4e46-a1d0-f7713997a2ff</CookieId>
  <Email>sample string 6</Email>
  <Id>sample string 8</Id>
  <LeadActivityType>SweepstakeApplication</LeadActivityType>
  <Name>sample string 9</Name>
  <Phone>sample string 7</Phone>
  <TimeStamp>2021-08-01T05:19:18.1031015+00:00</TimeStamp>
  <SweepstakesId>3</SweepstakesId>
  <Bonus>true</Bonus>
  <FacebookPageId>sample string 2</FacebookPageId>
</SweepstakeApplication>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.