POST api/sweepstakes/ConsumerUpdate

Request Information

URI Parameters

None.

Body Parameters

ConsumerUpdate
NameDescriptionTypeAdditional information
InternalID

string

None.

CampaignID

integer

None.

FirstName

string

Max length: 25

LastName

string

Max length: 25

Address1

string

Max length: 50

Address2

string

Max length: 50

City

string

Max length: 30

State

string

Max length: 2

PostalCode

string

Max length: 7

Request Formats

application/json, text/json

Sample:
{
  "InternalID": "sample string 1",
  "CampaignID": 2,
  "FirstName": "sample string 3",
  "LastName": "sample string 4",
  "Address1": "sample string 5",
  "Address2": "sample string 6",
  "City": "sample string 7",
  "State": "sample string 8",
  "PostalCode": "sample string 9"
}

application/xml, text/xml

Sample:
<ConsumerUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YA.Common.SweepStakes.API.Data">
  <Address1>sample string 5</Address1>
  <Address2>sample string 6</Address2>
  <CampaignID>2</CampaignID>
  <City>sample string 7</City>
  <FirstName>sample string 3</FirstName>
  <InternalID>sample string 1</InternalID>
  <LastName>sample string 4</LastName>
  <PostalCode>sample string 9</PostalCode>
  <State>sample string 8</State>
</ConsumerUpdate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>