UpdatePollQuestion.wr

07-18-2014

Updates various properties of a poll.

Parameters

  • Number : questionid - The ID of the poll question to update.
  • String : qtitle - Name of your poll question. Can basically be whatever you want.
  • String : question - Entire text of your poll question. Can be up to 762 characters.
  • String : type - Type of answer your poll question will respond to. Can be "TOUCHTONE", "MESSAGEONLY", "RECORD", "IDNUMBER", or "NUMBER" .

Usage

Example Request

Let's assume we already created the example question using NewPollQuestion.wr. Let's also assume that we also created the next question to ask after the favorite color. We'll pretend that next question ID is 808. We'll pretend the audio file we want to play on the call is U1777U.ULW Now we want to update that poll question with three possible answers...

  1. Red
  2. Yellow
  3. Blue
POST /UpdatePollQuestion.wr HTTP/1.1
Host: api.voicebroadcasting.com
Content-Type: application/x-www-form-urlencoded

apirid=1111&sidtoken=abcxyz123&questionid=54321&gotoid1=808&answer1=Red&gotoid2=808&answer2=Yellow&gotoid3=808&answer3=Blue&audiofile=U1777U.ULW&mp3file=https:%2f%2fplaymyfile.com%2fulwtomp3%2f5000%2fU1777U8057754723862812431196464336.MP3

Example Response

{"apirid":"1111","pollquestion":{...},"result":"ok"}