PUT api/cases/{caseId}/questions/{questionId}/answers/replace
Replace any answers to this question with the answers provided Will update matching answers (by Id) Will add new answers Will delete answers currently saved for question but not in the provided answers list
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| caseId |
The case to modify |
globally unique identifier |
Required |
| questionId |
The question to modify |
globally unique identifier |
Required |
Body Parameters
QuestionDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| HelpText | string |
None. |
|
| Type | string |
None. |
|
| Choices | Collection of ChoiceSimple |
None. |
|
| ParentQuestionId | globally unique identifier |
None. |
|
| ParentChoiceId | globally unique identifier |
None. |
|
| ParentAnswerId | globally unique identifier |
None. |
|
| Answers | Collection of AnswerDetail |
None. |
|
| SubQuestions | Collection of QuestionDetail |
None. |
|
| Template | string |
None. |
|
| UseUpdateTemplate | boolean |
None. |
|
| Validation | string |
None. |
|
| Formatting | string |
None. |
|
| Required | boolean |
None. |
|
| Id | globally unique identifier |
None. |
|
| CaseSectionId | globally unique identifier |
None. |
|
| Text | string |
None. |
|
| OrderIndex | integer |
None. |
Request Formats
application/json
Sample:
text/json
Sample:
application/xml
Sample:
text/xml
Sample:
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Collection of AnswerWithEffects| Name | Description | Type | Additional information |
|---|---|---|---|
| Answer | AnswerDetail |
None. |
|
| AddedSections | Collection of SectionSimple |
None. |
|
| RemovedSections | Collection of SectionSimple |
None. |
|
| AddedQuestions | Collection of QuestionSimple |
None. |
|
| RemovedQuestions | Collection of QuestionSimple |
None. |
Response Formats
application/json
Sample:
text/json
Sample:
application/xml
Sample:
text/xml
Sample: