Todos los endpoints

Desarrolladores / StrawPoll API / Codes and invites

Change an invite

PATCH/forms/{slug}/invites/{id}

Replaces the invite's name, email and code: a name or code you leave out is removed, so send the current values with your change. email is required, so codes without an email cannot be changed here. weight stays as it is when left out.

Requiere una clave de API.

Parámetros

Ruta

  • slug string obligatorio max. 20

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

  • id string (uuid) obligatorio

Cuerpo de la petición application/json

  • name string
  • email string (email) obligatorio
  • code string
  • weight number

    How many times this person's answers count.

    Por defecto: 1

Respuestas

The invite.

  • id string (uuid)
  • formId string (uuid)
  • inviteListId string (uuid) | null
  • type string

    manual for unique codes.

    Uno de: email manual

  • name string | null
  • email string | null
  • phone string | null
  • code string | null
  • invited boolean

    Whether the invite was emailed.

  • weight number

    How many times this person's answers count.

  • responseId string (uuid) | null

    Always null in a secret ballot.

  • createdAt string (date-time)
  • respondedAt string (date-time) | null

    Always null in a secret ballot.

  • responded boolean

    Whether the invite or code was used. Not on newly created ones.

Pruébalo

Crear una clave

Se envía desde tu navegador directamente a la API, a ningún otro sitio. Con «Recordar» se queda hasta que cierres esta pestaña. Con una clave de solo lectura puedes explorar sin cambiar nada.

PATCH https://new.strawpoll.com/api/v4/forms/{slug}/invites/{id}

Pega una clave de API para enviar las peticiones que la necesitan.

Las peticiones con clave cuentan para las peticiones de API diarias de tu plan.