すべてのエンドポイント

開発者向け / StrawPoll API / Forms

Duplicate a form

POST/forms/{slug}/duplicate

Copies the form as it stands in the editor, draft included, into a new draft named "Copy of …", without responses. Sections, fields and choices get new ids. The copy stays in the form's workspace when you may create forms there.

APIキーが必要です。

パラメーター

パス

  • slug string 必須 max. 20

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

レスポンス

The copy, as the form list shows it.

  • id string (uuid)
  • slug string
  • customSlug string | null

    The form's own link, while the plan includes it.

  • name string

    The name, else the (draft) title.

  • status string

    deleted and blocked are set by moderation; such forms cannot be changed.

    指定できる値: draft published archived deleted blocked

  • isOpen boolean
  • responseCount integer
  • workspaceId string (uuid) | null
  • sectionTypes array of string

    Each section's type in order, with question variants like yes_no or rating in place of content.

  • opensAt string (date-time) | null
  • closesAt string (date-time) | null
  • createdAt string (date-time)
  • updatedAt string (date-time)
  • deletedAt string (date-time) | null

試してみる

キーを作成

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

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

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

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