Access Keys:
Skip to content (Access Key - 0)
Live Chat

Get all the Available Surveys

Skip to end of metadata
Go to start of metadata
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
For information regarding the entities used in the Surveys CRUD, please visit Entities Used in Surveys CRUD page.

You can get a list of all the available surveys by using the following command(s):

Commands:

GET /em/api/surveys
GET /em/api/surveys.xml
GET /em/api/surveys.js

Response in XML:

HTTP/1.0 200 OK
 <list>
  <survey>
    <id>4028807b2a8e8437012a8e8bc3a20001</id>
    <name>New Survey</name>
    <companyId>1</companyId>
    <instruction />
    <creationDate>1282233600000</creationDate>
    <creator>lex</creator>
    <results>9</results>
    <questions>
      <question>
      <optional>false</optional>
      <type>7</type>
      <text>New Question</text>
      <minimum>0</minimum>
      <maximum>268435455</maximum>
      <items>aabb bb cc dd ee</items>
      <semantic>0</semantic>
      </question>
    </questions>
  </survey>
</list>

Response in JSON:

HTTP/1.0 200 OK
 [{
  id : "4028807b2a8e8437012a8e8bc3a20001",
  creationDate : new Date(1282233600000),
  name : "New Survey",
  questions : [
    {text : "New Question", items : "aabb\nbb\ncc\ndd\nee", minimum : 0, maximum : 268435455, optional : false, semantic : 0, type : 7}
  ],
  instruction : "",
  companyId : "1",
  creator : "lex"}
]
Adaptavist Theme Builder (4.2.0) Powered by Atlassian Confluence 3.3, the Enterprise Wiki