Todos los endpoints

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

Requiere una clave de API.

Parámetros

Ruta

  • slug string obligatorio max. 20

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

Respuestas

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.

    Uno 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

Pruébalo

Crear una clave

Se envía desde tu navegador directamente a la API, a ningún otro sitio. Con «Recordar» se queda hasta que cierres esta pestaña. Con una clave de solo lectura puedes explorar sin cambiar nada.

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

Pega una clave de API para enviar las peticiones que la necesitan.

Las peticiones con clave cuentan para las peticiones de API diarias de tu plan.