POST api/survey

Request Information

URI Parameters

None.

Body Parameters

SurveyEntry
NameDescriptionTypeAdditional information
Email

string

None.

ExternalId

string

None.

FirstName

string

None.

LastName

string

None.

ClientId

string

None.

OfferId

string

None.

ConsumerGuid

string

None.

Other1

string

None.

Other2

string

None.

Other3

string

None.

Survey

Collection of SurveyQuestionAnswers

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "ExternalId": "sample string 2",
  "FirstName": "sample string 3",
  "LastName": "sample string 4",
  "ClientId": "sample string 5",
  "OfferId": "sample string 6",
  "ConsumerGuid": "sample string 7",
  "Other1": "sample string 8",
  "Other2": "sample string 9",
  "Other3": "sample string 10",
  "Survey": [
    {
      "Question": "sample string 1",
      "Answer": "sample string 2"
    },
    {
      "Question": "sample string 1",
      "Answer": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<SurveyEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YA.Common.SweepStakes.API.Models">
  <ClientId>sample string 5</ClientId>
  <ConsumerGuid>sample string 7</ConsumerGuid>
  <Email>sample string 1</Email>
  <ExternalId>sample string 2</ExternalId>
  <FirstName>sample string 3</FirstName>
  <LastName>sample string 4</LastName>
  <OfferId>sample string 6</OfferId>
  <Other1>sample string 8</Other1>
  <Other2>sample string 9</Other2>
  <Other3>sample string 10</Other3>
  <Survey>
    <SurveyQuestionAnswers>
      <Answer>sample string 2</Answer>
      <Question>sample string 1</Question>
    </SurveyQuestionAnswers>
    <SurveyQuestionAnswers>
      <Answer>sample string 2</Answer>
      <Question>sample string 1</Question>
    </SurveyQuestionAnswers>
  </Survey>
</SurveyEntry>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.