Parametri
Percorso
idstring obbligatorio max. 20The poll's id, as in
https://strawpoll.com/r/{id}. The same as its form's slug.
Corpo della richiesta application/json
titlestring max. 255descriptionstring | null max. 2000optionsarray of string | objectThe new list. Send an option's
idto keep its votes.isOpenbooleanOpen or close voting.
statusstringUno tra:
draftpublishedarchivedallowMultiplebooleanallowOtherbooleanrequireNamesbooleanresultsVisibilitystringUno tra:
publicpublic_after_responsepublic_after_closeprivateduplicateCheckstringUno tra:
nonesessionipnameemailcodeclosesAtstring (date-time) | nulltimezonestring
Risposte
The changed 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.
Uno tra:
multiple_choicerankingranked_choicemeetingstatusstringdeletedandblockedare set by moderation; such forms cannot be changed.Uno tra:
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
Provalo
Inviata dal tuo browser direttamente all’API, da nessun’altra parte. Con «Ricorda» resta finché non chiudi questa scheda. Con una chiave di sola lettura puoi esplorare senza cambiare nulla.
https://new.strawpoll.com/api/v4/polls/{id}Incolla una chiave API per inviare le richieste che ne hanno bisogno.
Le richieste con chiave contano nelle richieste API giornaliere del tuo piano.