Warning: API Version 1 is deprecated. Please use API Version 2.
Api Documentation

Polls

Polls on which users can vote
Retrieves a collection of polls.
Retrieves a single poll.
Creates a new poll. Only available to API keys without user authentication.
Updates an existing poll. Only available to API keys without user authentication.
Deletes a single poll. Only available to API keys without user authentication.
Json
XML
PUT https://api.bundeling.com/V1/polls

Parameters

Url

NameDescriptionType
idA unique integer used to identify a pollint

Body

NameDescriptionTypeNillable
author_idThe user id of the authorintfalse
titleThe title of the pollstringfalse
textThe body of the poll.stringfalse
startdateThe date on which this poll will start.datetimefalse
enddateThe date on which this poll will end.datetimefalse

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"
}