product:chat

Cast a vote on a poll

Sends events:

  • feeds.poll.vote_casted
  • feeds.poll.vote_changed
  • feeds.poll.vote_removed
  • poll.vote_casted
  • poll.vote_changed
  • poll.vote_removed
post/messages/{message_id}/polls/{poll_id}/vote

Request

  • Base URL
    https://chat.stream-io-api.com
  • URL
    https://chat.stream-io-api.com/messages/{message_id}/polls/{poll_id}/vote
  • 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

Path parameters

message_idstring required
poll_idstring required

Poll ID

Request body

config_keystring

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

config_teamstring

Team associated with the configuration. Server-side only.

user_idstring

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