POST api/cases/{caseId}/questions/{questionId}/answers
Add an answer to this Question. Method will fail if an answer already exists when multiple answers are not allowed
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| caseId | globally unique identifier |
Required |
|
| questionId | globally unique identifier |
Required |
Body Parameters
AnswerDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| QuestionId | globally unique identifier |
None. |
|
| ChoiceId | globally unique identifier |
None. |
|
| Text | string |
None. |
|
| ContextualText | string |
None. |
|
| OrderIndex | integer |
None. |
|
| SubQuestions | Collection of QuestionDetail |
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
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: