Paramètres
Chemin
slugstring obligatoire max. 20The form's public id, as in
https://strawpoll.com/r/{slug}.
Corps de la requête 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.Parmi:
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.
Réponses
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.Parmi:
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.
Parmi:
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
Essayer
Envoyée depuis votre navigateur directement à l’API, nulle part ailleurs. Avec « Mémoriser », elle reste jusqu’à la fermeture de cet onglet. Une clé en lecture seule permet d’explorer sans rien modifier.
https://new.strawpoll.com/api/v4/forms/{slug}Collez une clé d’API pour envoyer les requêtes qui en demandent une.
Les requêtes avec une clé comptent dans les requêtes d’API quotidiennes de votre offre.