Deletes a single poll. Only available to API keys without user authentication.
Json
XML
PUT https://api.bundeling.com/V1/polls
Parameters
Url
Name
Description
Type
id
A unique integer used to identify a poll
int
Body
Name
Description
Type
Nillable
author_id
The user id of the author
int
false
title
The title of the poll
string
false
text
The body of the poll.
string
false
startdate
The date on which this poll will start.
datetime
false
enddate
The date on which this poll will end.
datetime
false
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"
}