product:chat

Updates a poll

Sends events:

  • feeds.poll.closed
  • feeds.poll.updated
  • poll.closed
  • poll.updated
put/polls

Request

  • Base URL
    https://chat.stream-io-api.com
  • URL
    https://chat.stream-io-api.com/polls
  • Auth
    • API key in header Authorization and API key in query parameter api_key and API key in header Stream-Auth-Type
    • or API key in query parameter api_key and API key in header Stream-Auth-Type

Request body

allow_answersboolean

Allow answers

allow_user_suggested_optionsboolean

Allow user suggested options

config_keystring

Key of the moderation configuration to use. Server-side only.

config_teamstring

Team associated with the configuration. Server-side only.

customobject

Custom data for this object

descriptionstring

Poll description

enforce_unique_voteboolean

Enforce unique vote

idstring required

Poll ID

is_closedboolean

Is closed

max_votes_allowedinteger

Max votes allowed

namestring required

Poll name

user_idstring
voting_visibility'anonymous' | 'public'

Voting visibility

Response

Successful response

durationstring required

Duration of the request in milliseconds

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the new optional request property

    • info

      added the new optional request property