Parametri
Percorso
slugstring obbligatorio max. 20The form's public id, as in
https://strawpoll.com/r/{slug}.
Corpo della richiesta 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 tra:
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.
Risposte
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 tra:
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 tra:
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
Provalo
Inviata dal tuo browser direttamente all’API, da nessun’altra parte. Con «Ricorda» resta finché non chiudi questa scheda. Con una chiave di sola lettura puoi esplorare senza cambiare nulla.
https://new.strawpoll.com/api/v4/forms/{slug}Incolla una chiave API per inviare le richieste che ne hanno bisogno.
Le richieste con chiave contano nelle richieste API giornaliere del tuo piano.