Request-body application/json
titlestring verplicht max. 255The question.
optionsarray of string verplichtThe answers to choose from, at least two (one for meeting polls).
typestringmultiple_choice: pick one option, or several withallowMultiple.ranking: order the options; each place earns points.ranked_choice: rank the options; an instant runoff finds the majority winner.meeting: mark which dates and times work.
Een van:
multiple_choicerankingranked_choicemeetingdescriptionstring max. 2000Text under the question.
statusstringEen van:
draftpublishedStandaard:
publishedworkspaceIdstring (uuid)Defaults to the workspace your new polls go to.
allowMultiplebooleanStandaard:
falseallowOtherbooleanStandaard:
falserequireNamesbooleanStandaard:
falseresultsVisibilitystringEen van:
publicpublic_after_responsepublic_after_closeprivateduplicateCheckstringEen van:
nonesessionipnameemailcodeclosesAtstring (date-time) | nulltimezonestringMeeting polls: the time zone of the slots. Default UTC.
Antwoorden
The created poll.
idstringThe poll's id, as in https://strawpoll.com/r/{id}.
titlestringdescriptionstringtypestringmultiple_choice: pick one option, or several withallowMultiple.ranking: order the options; each place earns points.ranked_choice: rank the options; an instant runoff finds the majority winner.meeting: mark which dates and times work.
Een van:
multiple_choicerankingranked_choicemeetingstatusstringdeletedandblockedare set by moderation; such forms cannot be changed.Een van:
draftpublishedarchiveddeletedblockedisOpenbooleanvoteCountintegerHow many people voted.
optionsarray of PollOptionotherAnswersarray of objectAnswers voters added themselves, when
allowOtheris on.winnerstring | nullRanked choice only.
tiedarray of stringRanked choice only; the options tied for the win.
roundsintegerRanked choice only.
settingsPollSettingsurlsPollUrlscreatedAtstring (date-time)updatedAtstring (date-time) | null
Probeer het
Gaat vanuit je browser rechtstreeks naar de API, nergens anders heen. Met ‘Onthouden’ blijft hij tot je dit tabblad sluit. Met een alleen-lezen-sleutel kijk je rond zonder iets te veranderen.
https://new.strawpoll.com/api/v4/pollsPlak een API-sleutel om verzoeken te versturen die er een nodig hebben.
Verzoeken met een sleutel tellen mee voor de dagelijkse API-verzoeken van je abonnement.