API / SurveyAnswer

Entity Description:

SurveyAnswer results will be found on the bottom of the metrics reports page. Multiple survey answers will appear on the same metrics page.

 

Properties

Name Description Type Additional
Information
ID Int32
ResponseID Int32
QuestionID Int32
Answer String
Enabled Boolean

 

Entity Statement

Creating a SurveyAnswer
Request
POST /ssv3/odata/SurveyAnswers
Content-Type     
application/json
Request body
{
“ID”:”0″,”ResponseID”:”0″,”QuestionID”:”0″,”Answer”:”Example Answer”,”Enabled”:false
}
Response body
{
“ID”:1,”ResponseID”:0,”QuestionID”:0,”Answer”:”Example Answer”,”Enabled”:false
}
Deleting a SurveyAnswer
  Request
  DELETE /ssv3/odata/SurveyAnswers(1)
  Response Headers
  HTTP/1.1 204 No Content
Getting a SurveyAnswer
  Request
  GET /ssv3/odata/SurveyAnswers(1)
  Content-Type     
  application/json
  Response body
  {
“ID”:1,”ResponseID”:0,”QuestionID”:0,”Answer”:”Example Answer”,”Enabled”:false
}
Updating a SurveyAnswer
  Request
  PUT /ssv3/odata/SurveyAnswers(1)
  Content-Type     
  application/json
  Request body
  {
“ID”:”0″,”ResponseID”:”0″,”QuestionID”:”0″,”Answer”:”Example Answer”,”Enabled”:false
}
  Response Headers
  HTTP/1.1 204 No Content
Getting all SurveyAnswers
  Request
  GET /ssv3/odata/SurveyAnswers
  Content-Type
  application/json
  Response body
  “value”:[{
“ID”:0,”ResponseID”:0,”QuestionID”:0,”Answer”:”Example Answer”,”Enabled”:false
},{
“ID”:1,”ResponseID”:0,”QuestionID”:0,”Answer”:”Example Answer”,”Enabled”:false
}]