すべてのエンドポイント

開発者向け / StrawPoll API / Forms

Delete a form

DELETE/forms/{slug}

Moves the form to the trash, where it can be restored with POST /forms/{slug}/restore until the trash is emptied. With permanent=true the form and all of its responses are deleted for good, also from the trash.

APIキーが必要です。

パラメーター

パス

  • slug string 必須 max. 20

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

クエリ

  • permanent boolean

    デフォルト: false

レスポンス

Done.

  • success boolean

試してみる

キーを作成

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

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

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

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