API / SurveyAllowedAnswer

Entity Description:

SurveyAllowedAnswer allows the email recipient/survey respondent to view the results of the survey upon submitting the vote or selection.

 

Properties

Name Description Type Additional
Information
ID Int32
QuestionID Int32
AllowedAnswer String

 

 Entity Statement

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