POST api/News/SetPoll

Request Information

URI Parameters

None.

Body Parameters

SetPollRequest
NameDescriptionTypeAdditional information
pollCode

integer

None.

optionId

integer

None.

des

string

None.

Token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "pollCode": 1,
  "optionId": 2,
  "des": "sample string 3",
  "Token": "sample string 4"
}

application/xml, text/xml

Sample:
<SetPollRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServicesDomain.Models.News">
  <Token xmlns="http://schemas.datacontract.org/2004/07/ServicesDomain.Models">sample string 4</Token>
  <des>sample string 3</des>
  <optionId>2</optionId>
  <pollCode>1</pollCode>
</SetPollRequest>

multipart/form-data

Sample:
<SetPollRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServicesDomain.Models.News"><Token xmlns="http://schemas.datacontract.org/2004/07/ServicesDomain.Models">sample string 4</Token><des>sample string 3</des><optionId>2</optionId><pollCode>1</pollCode></SetPollRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, multipart/form-data

Sample:

Sample not available.