Deletes a single poll. Only available to API keys without user authentication.
Json
XML
POST https://api.bundeling.com/V1/polls
Parameters
Body
Name
Description
Type
Nillable
Required
author_id
The user id of the author
int
false
true
title
The title of the poll
string
false
true
text
The body of the poll.
string
false
true
startdate
The date on which this poll will start.
datetime
false
true
enddate
The date on which this poll will end.
datetime
false
true
Example request
Headers
Content-Type:application/json
Api-Key:RAegSX8yZfEbqSPM
Body
{
"author_id": 14,
"title": "Your vote counts",
"text": "Make your choice and vote for one of these options...",
"startdate": "2017-01-15T18:00:00+0000",
"enddate": "2017-01-16T10:00:00+0000"
}
Example response
{
"id": 14,
"author_id": 15,
"title": "Your vote counts",
"text": "Make your choice and vote for one of these options...",
"startdate": "2017-01-15T18:00:00+0000",
"enddate": "2017-01-16T10:00:00+0000"
}