You are here: Communications Cloud API v1 > Resources > Subscriber Questions > Read a Single Question

Read a Single Question

For questions tied to a topic: GET to /api/account/ACCOUNT_CODE/topics/TOPIC_CODE/questions/QUESTION_ID.xml

For questions at the account level: GET to /api/account/ACCOUNT_CODE/questions/QUESTION_ID.xml

Example Output

Output for Free-Response Question

<?xml version="1.0" encoding="UTF-8"?>
  <question>
    <columnar type="boolean">false</columnar>
    <enabled type="boolean">true</enabled>
    <lock-version type="integer">0</lock-version>
    <name>NAME</name>
    <position type="integer" nil="true"></position>
    <question-text>QUESTION</question-text>
    <response-count type="integer">0</response-count>
    <response-field-size>SIZE</response-field-size>
    <response-type>RESPONSE</response-type>
    <select-box type="boolean">false</select-box>
    <to-param>MTAxMDk=</to-param>
  </question>

Output for Multiple-Choice Question

<question>
  <columnar type="boolean">false</columnar>
  <enabled type="boolean">true</enabled>
  <lock-version type="integer">1</lock-version>
  <name>Select Color</name>
  <position type="integer" nil="true"></position>
  <question-text>What is your favorite color</question-text>
  <response-count type="integer">0</response-count>
  <response-field-size>M</response-field-size>
  <response-type>select_multi</response-type>
  <select-box type="boolean">false</select-box>
  <answers type="array">
    <answer>
      <answer-text>White</answer-text>
      <enabled type="boolean">true</enabled>
      <position type="integer">1</position>
      <to-param>MTA0ODE=</to-param>
    </answer>
    <answer>
      <answer-text>Yellow</answer-text>
      <enabled type="boolean">true</enabled>
      <position type="integer">2</position>
      <to-param>MTA0ODI=</to-param>
    </answer>
    <answer>
      <answer-text>Black</answer-text>
      <enabled type="boolean">true</enabled>
      <position type="integer">3</position>
      <to-param>MTA0ODM=</to-param>
    </answer>
    <answer>
      <answer-text>Red</answer-text>
      <enabled type="boolean">true</enabled>
      <position type="integer">4</position>
      <to-param>MTA0ODQ=</to-param>
    </answer>
    .......
  </answers>
  <to-param>MTAxMTA=</to-param>
</question>
Troubleshooting

Reference question error codes

 

Was this page helpful? Can't find what you need? Let us know