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

Update a Specific 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.
Updating a survey will cause all the survey results to be cleared.
For information regarding the entities used in the Surveys CRUD, please visit Entities Used in Surveys CRUD page.

You can update a specific survey by using the following command(s):

Commands:

PUT /em/api/surveys/{id}
PUT /em/api/surveys/{id}.xml
PUT /em/api/surveys/{id}.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