Parámetros
Ruta
slugstring obligatorio max. 20The form's public id, as in
https://strawpoll.com/r/{slug}.
Cuerpo de la petición application/json
namestring max. 255Shown only to you, e.g. in the dashboard.
isOpenbooleanClose or reopen the form. Reopening drops a close date that already passed.
archivedbooleantruearchives a published form,falsemakes an archived form published again.customSlugstring | null max. 50The form's own link, like
/team-lunch(Basic plan and up).nullremoves it.linkPreviewobject | nullOwn title, description and image for link previews (Pro plan and up).
nullremoves it.joinCodeboolean | nulltruegives a published form a numeric join code,nullremoves it.Uno de:
truenullpropertiesFormPropertiesForm-wide settings. Unknown keys are dropped, unknown values fall back to the default. A request's
propertiesreplaces the saved ones: missing keys get their defaults.
Respuestas
The updated form.
idstring (uuid)slugstringcustomSlugstring | nullThe form's own link, null while the plan does not include it.
joinCodestring | nullThe number the audience types to reach the form.
userIdstring (uuid) | nullworkspaceIdstring (uuid) | nullnamestring | nulltitlestringstatusstringdeletedandblockedare set by moderation; such forms cannot be changed.Uno de:
draftpublishedarchiveddeletedblockedresponseCountintegerisOpenbooleanthemeIdstring (uuid) | nullversionstring (uuid)Changes on every publish or replace.
currentRoundIdstring (uuid) | nullThe current round of a repeating form.
templateIdstring | nullThe template the form started from.
sourcestring | nullHow the form was made outside the editor.
Uno de:
apimcplinknullpropertiesFormPropertiesForm-wide settings. Unknown keys are dropped, unknown values fall back to the default. A request's
propertiesreplaces the saved ones: missing keys get their defaults.createdAtstring (date-time)updatedAtstring (date-time) | nulldeletedAtstring (date-time) | nullthemeTheme | any | nullsectionsarray of Sectionurlsobject
Pruébalo
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.
https://new.strawpoll.com/api/v4/forms/{slug}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.