PUT api/nkis/questions/{question}
Updates a given NKI question with the given information. NOTE! Existing information is replaced entirely with the new information set. NOTE! Updating question type from slider removes slider settings. NOTE! Updating question type to slider adds default slider settings.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| question |
Question ID |
integer |
Required |
Body Parameters
Updated question data
NKIQuestionUpdateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
Question ID |
integer |
Required |
| Question |
Question title/text |
string |
Required String length: inclusive between 0 and 250 |
| HelpText |
Question help text |
string |
String length: inclusive between 0 and 250 |
| Type |
Question type |
QuestionType |
Required Range: inclusive between 3 and 4 |
| Required |
Whether the question is mandatory |
boolean |
Required |
| Order |
Question order index in NKI |
integer |
None. |
Request Formats
application/json, text/json
{
"ID": 1,
"Question": "sample string 2",
"HelpText": "sample string 3",
"Type": 0,
"Required": true,
"Order": 1
}
Response Information
Resource Description
Summary of updated question
NKIQuestionDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| NKI |
ID of parent NKI |
integer |
None. |
| ID |
Question ID |
integer |
Required |
| Question |
Question title/text |
string |
Required String length: inclusive between 0 and 250 |
| HelpText |
Question help text |
string |
String length: inclusive between 0 and 250 |
| Type |
Question type |
QuestionType |
Required Range: inclusive between 3 and 4 |
| Required |
Whether the question is mandatory |
boolean |
Required |
| Order |
Question order index in NKI |
integer |
None. |
Response Formats
application/json, text/json
{
"NKI": 1,
"ID": 2,
"Question": "sample string 3",
"HelpText": "sample string 4",
"Type": 0,
"Required": true,
"Order": 1
}