リクエストボディ application/json
titlestring 必須 max. 255The question.
optionsarray of string 必須The 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.
指定できる値:
multiple_choicerankingranked_choicemeetingdescriptionstring max. 2000Text under the question.
statusstring指定できる値:
draftpublishedデフォルト:
publishedworkspaceIdstring (uuid)Defaults to the workspace your new polls go to.
allowMultiplebooleanデフォルト:
falseallowOtherbooleanデフォルト:
falserequireNamesbooleanデフォルト:
falseresultsVisibilitystring指定できる値:
publicpublic_after_responsepublic_after_closeprivateduplicateCheckstring指定できる値:
nonesessionipnameemailcodeclosesAtstring (date-time) | nulltimezonestringMeeting polls: the time zone of the slots. Default UTC.
レスポンス
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.
指定できる値:
multiple_choicerankingranked_choicemeetingstatusstringdeletedandblockedare set by moderation; such forms cannot be changed.指定できる値:
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
試してみる
ブラウザからAPIへ直接送られ、ほかには送られません。「記憶する」をオンにすると、このタブを閉じるまで保持されます。 読み取り専用キーなら、何も変更せずに試せます。
https://new.strawpoll.com/api/v4/pollsキーが必要なリクエストを送るには、APIキーを貼り付けてください。
キーを使ったリクエストは、プランの1日あたりのAPIリクエスト数に含まれます。