Parameter
Pfad
slugstring Pflicht max. 20The form's public id, as in
https://strawpoll.com/r/{slug}.
Request-Body 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. 100The 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.Einer von:
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.
Antworten
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.Einer von:
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.
Einer von:
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
Ausprobieren
Wird von deinem Browser direkt an die API gesendet und an keine andere Stelle. Mit „Merken“ bleibt er gespeichert, bis du diesen Tab schließt. Mit einem Nur-Lesen-Schlüssel kannst du die API erkunden, ohne Daten zu ändern.
https://strawpoll.com/api/v4/forms/{slug}Füge einen API-Schlüssel ein, um Anfragen zu senden, die einen brauchen.
Anfragen mit Schlüssel zählen gegen die täglichen API-Anfragen deines Tarifs.