すべてのエンドポイント

開発者向け / StrawPoll API / Responses

Invalidate responses

PATCH/forms/{slug}/responses

Invalidates up to 100 responses by id. They stay listed, marked invalidated, but stop counting in the results. Ids of other forms and responses already invalidated are skipped.

APIキーが必要です。

パラメーター

パス

  • slug string 必須 max. 20

    The form's public id, as in https://strawpoll.com/r/{slug}.

リクエストボディ application/json

  • ids array of string (uuid) 必須

レスポンス

The ids that were invalidated.

  • invalidated array of string (uuid)

試してみる

キーを作成

ブラウザからAPIへ直接送られ、ほかには送られません。「記憶する」をオンにすると、このタブを閉じるまで保持されます。 読み取り専用キーなら、何も変更せずに試せます。

PATCH https://new.strawpoll.com/api/v4/forms/{slug}/responses

キーが必要なリクエストを送るには、APIキーを貼り付けてください。

キーを使ったリクエストは、プランの1日あたりのAPIリクエスト数に含まれます。