Parameters
Pad
slugstring verplicht 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.Een van:
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.
Antwoorden
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.Een van:
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.
Een van:
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
Probeer het
Wordt vanuit je browser rechtstreeks naar de API verstuurd en nergens anders heen. Met ‘Onthouden’ blijft hij bewaard tot je dit tabblad sluit. Met een alleen-lezen-sleutel kun je de API verkennen zonder gegevens te wijzigen.
https://strawpoll.com/api/v4/forms/{slug}Plak een API-sleutel om verzoeken te versturen die er een nodig hebben.
Verzoeken met een sleutel tellen mee voor de dagelijkse API-verzoeken van je abonnement.