Tutti gli endpoint

Sviluppatori / 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}).

Richiede una chiave API.

Parametri

Percorso

  • slug string obbligatorio max. 20

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

Corpo della richiesta 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

Risposte

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

Provalo

Crea una chiave

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.

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

Incolla una chiave API per inviare le richieste che ne hanno bisogno.

Le richieste con chiave contano nelle richieste API giornaliere del tuo piano.