PUT api/surveys/questions/alternatives/{alternative}

Updates a given survey question alternative with the given information. NOTE! Existing information is replaced entirely with the new information set.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
alternative

Alternative ID

integer

Required

Body Parameters

Updated question alternative data

SurveyQuestionAlternativeUpdateDTO
NameDescriptionTypeAdditional information
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.

Request Formats

application/json, text/json

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

Response Information

Resource Description

Summary of updated 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
}