product:chat

Create poll option

Changed on

Creates a poll option

Sends events:

  • feeds.poll.updated
  • poll.updated
post/polls/{poll_id}/options

Request

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

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.

customobject

Custom data for this object

textstring required

Option text

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