POST api/v1/Poll/CopyPoll
Request Information
URI Parameters
None.
Body Parameters
PollModelName | Description | Type | Additional information |
---|---|---|---|
Name | string |
Required |
|
PollId | integer |
None. |
|
Options | Options |
None. |
|
OptionImageUrls | OptionImageUrls |
None. |
|
PollImageUrl | string |
None. |
|
VideoIds | string |
None. |
|
ForumThreadId | integer |
None. |
|
Description | string |
None. |
|
DisplayPollResult | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "PollId": 2, "Options": { "Option1": "sample string 1", "Option2": "sample string 2", "Option3": "sample string 3", "Option4": "sample string 4" }, "OptionImageUrls": { "OptionImageUrl1": "sample string 1", "OptionImageUrl2": "sample string 2", "OptionImageUrl3": "sample string 3", "OptionImageUrl4": "sample string 4" }, "PollImageUrl": "sample string 3", "VideoIds": "sample string 4", "ForumThreadId": 1, "Description": "sample string 5", "DisplayPollResult": true }
text/html
Sample:
{"Name":"sample string 1","PollId":2,"Options":{"Option1":"sample string 1","Option2":"sample string 2","Option3":"sample string 3","Option4":"sample string 4"},"OptionImageUrls":{"OptionImageUrl1":"sample string 1","OptionImageUrl2":"sample string 2","OptionImageUrl3":"sample string 3","OptionImageUrl4":"sample string 4"},"PollImageUrl":"sample string 3","VideoIds":"sample string 4","ForumThreadId":1,"Description":"sample string 5","DisplayPollResult":true}
text/xml
Sample:
<PollModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShotClassCore.Models"> <Description>sample string 5</Description> <DisplayPollResult>true</DisplayPollResult> <ForumThreadId>1</ForumThreadId> <Name>sample string 1</Name> <OptionImageUrls> <OptionImageUrl1>sample string 1</OptionImageUrl1> <OptionImageUrl2>sample string 2</OptionImageUrl2> <OptionImageUrl3>sample string 3</OptionImageUrl3> <OptionImageUrl4>sample string 4</OptionImageUrl4> </OptionImageUrls> <Options> <Option1>sample string 1</Option1> <Option2>sample string 2</Option2> <Option3>sample string 3</Option3> <Option4>sample string 4</Option4> </Options> <PollId>2</PollId> <PollImageUrl>sample string 3</PollImageUrl> <VideoIds>sample string 4</VideoIds> </PollModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json, text/html
Sample:
1
text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>