Alle Endpunkte

Entwickler / StrawPoll API / Publishing

Save a draft

PUT/forms/{slug}/draft

Saves changes respondents do not see until you publish. The draft holds title, themeId, properties and sections; the form's name is not part of it (rename with PATCH /forms/{slug}).

Braucht einen API-Schlüssel.

Parameter

Pfad

  • slug string Pflicht max. 20

    The form's public id, as in https://strawpoll.com/r/{slug}.

Request-Body application/json

  • title string
  • themeId string (uuid) | null
  • properties FormProperties

    Form-wide settings. Unknown keys are dropped, unknown values fall back to the default. A request's properties replaces the saved ones: missing keys get their defaults.

  • sections array of SectionInput

Antworten

The saved draft. Sections come back as sent.

  • title string
  • themeId string | null
  • properties FormProperties

    Form-wide settings. Unknown keys are dropped, unknown values fall back to the default. A request's properties replaces the saved ones: missing keys get their defaults.

  • sections array of SectionInput

Ausprobieren

Schlüssel erstellen

Geht von deinem Browser direkt an die API und nirgendwo sonst hin. Mit „Merken“ bleibt er, bis du diesen Tab schließt. Mit einem Nur-Lesen-Schlüssel schaust du dich um, ohne etwas zu ändern.

PUT https://new.strawpoll.com/api/v4/forms/{slug}/draft

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.