POST api/surveys/questions/{question}/alternatives

Creates a new survey question alternative in a given survey question with the given information

Request Information

URI Parameters

NameDescriptionTypeAdditional information
question

Question ID

integer

Required

Body Parameters

Alternative data of new question alternative

SurveyQuestionAlternativeNewDTO
NameDescriptionTypeAdditional information
Name

Alternative title/text

string

Required

String length: inclusive between 0 and 1000

Order

Alternative order index in question, alternatives at same index gets shuffled

integer

None.

AlarmTrigger

Whether the alternative should trigger the survey alarm. Defaults to false.

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Order": 1,
  "AlarmTrigger": true
}

Response Information

Resource Description

Summary of created question alternative

SurveyQuestionAlternativeDTO
NameDescriptionTypeAdditional information
Question

ID of parent Question

integer

None.

ID

Alternative ID

integer

Required

Name

Alternative title/text

string

Required

String length: inclusive between 0 and 1000

Order

Alternative order index in question, alternatives at same index gets shuffled

integer

None.

AlarmTrigger

Whether the alternative should trigger the survey alarm. Defaults to false.

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Question": 1,
  "ID": 2,
  "Name": "sample string 3",
  "Order": 1,
  "AlarmTrigger": true
}