POST api/v3/Polls/distribution

Request Information

URI Parameters

None.

Body Parameters

DistributePollModel
NameDescriptionTypeAdditional information
DistributeUserModel

Collection of DistributeUserInfoModel

None.

IsNotify

boolean

None.

PollId

integer

None.

StartDate

string

None.

EndDate

string

None.

StartDateTime

string

None.

EndDateTime

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DistributeUserModel": [
    {
      "Type": "sample string 1",
      "Name": "sample string 2",
      "Id": 3
    },
    {
      "Type": "sample string 1",
      "Name": "sample string 2",
      "Id": 3
    }
  ],
  "IsNotify": true,
  "PollId": 2,
  "StartDate": "sample string 3",
  "EndDate": "sample string 4",
  "StartDateTime": "sample string 5",
  "EndDateTime": "sample string 6"
}

text/html

Sample:
{"DistributeUserModel":[{"Type":"sample string 1","Name":"sample string 2","Id":3},{"Type":"sample string 1","Name":"sample string 2","Id":3}],"IsNotify":true,"PollId":2,"StartDate":"sample string 3","EndDate":"sample string 4","StartDateTime":"sample string 5","EndDateTime":"sample string 6"}

text/xml

Sample:
<DistributePollModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShotClassCore.Models">
  <DistributeUserModel>
    <DistributeUserInfoModel>
      <Id>3</Id>
      <Name>sample string 2</Name>
      <Type>sample string 1</Type>
    </DistributeUserInfoModel>
    <DistributeUserInfoModel>
      <Id>3</Id>
      <Name>sample string 2</Name>
      <Type>sample string 1</Type>
    </DistributeUserInfoModel>
  </DistributeUserModel>
  <EndDate>sample string 4</EndDate>
  <EndDateTime>sample string 6</EndDateTime>
  <IsNotify>true</IsNotify>
  <PollId>2</PollId>
  <StartDate>sample string 3</StartDate>
  <StartDateTime>sample string 5</StartDateTime>
</DistributePollModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json, text/html

Sample:
1

text/xml

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