Todos os endpoints

Desenvolvedores / 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.

Requer uma chave de API.

Parâmetros

Caminho

  • slug string obrigatório max. 20

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

Respostas

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.

    Um de: 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

Experimente

Criar uma chave

Enviada do seu navegador direto para a API, para nenhum outro lugar. Com “Lembrar”, fica até você fechar esta aba. Uma chave somente leitura permite explorar sem alterar nada.

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

Cole uma chave de API para enviar as requisições que precisam de uma.

Requisições com chave contam para as requisições de API diárias do seu plano.