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

Create a New Survey

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 create a new survey by using the following command(s):

Commands:

POST /em/api/surveys
POST /em/api/surveys.xml
POST /em/api/surveys.js

Request in XML:

<survey>
    <name>New Survey</name>
    <instruction />
    <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>

Request in JSON:

{
  name : "New Survey",
  questions : [
    {text : "New Question", items : "aabb\nbb\ncc\ndd\nee", minimum : 0, maximum : 268435455, optional : false, semantic : 0, type : 7}
  ],
  instruction : "",
 }

Response:

HTTP/1.0 200 OK
Adaptavist Theme Builder (4.2.0) Powered by Atlassian Confluence 3.3, the Enterprise Wiki