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
| Name | Description | Type | Additional information |
|---|---|---|---|
| alternative |
Alternative ID |
integer |
Required |
Body Parameters
Updated question alternative data
SurveyQuestionAlternativeUpdateDTO| Name | Description | Type | Additional 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
{
"ID": 1,
"Name": "sample string 2",
"Order": 1,
"AlarmTrigger": true
}
Response Information
Resource Description
Summary of updated question alternative
SurveyQuestionAlternativeDTO| Name | Description | Type | Additional 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
{
"Question": 1,
"ID": 2,
"Name": "sample string 3",
"Order": 1,
"AlarmTrigger": true
}