SurveyQuestionAnswer

An object describing an answer option for a survey question.

Field nameTypeConditionsDescription
idstringreadablewritabledefault_fieldAnswer option identifier. When creating a survey and using conditions, you must pass a temporary id for each answer (must have the new_ prefix). This is required because in SurveyConditionAnswerExists conditions are defined based on the answer id. After the survey is created, the temporary id will be replaced with the real one. When updating a survey, the new_ prefix is required only for new answer options.
typeintegerreadablewritable
choices =
  • 0 - Custom answer option
  • 1 - Special answer “Other”
  • 2 - Special answer “None of the above”
  • 3 - Special answer “Hard to say”
  • 4 - Special answer “Your own option” with the ability to answer in text
Answer option type
textstringreadablewritablemax_length=40The answer option text itself. This field should be provided only if a custom answer option type is selected.