Update Reconciliation Question and Answer
Partially updates the answer to a run-time reconciliation question.
REST Resource
PATCH /arm/rest/rc/v1/reconciliations/{reconciliationId}/questions/{questionId}/answer
Required Roles
The user must meet one of the following access conditions:
- User assigned to a reconciliation responsibility for which the question is configured as editable
- Service Administrator or Power User only where the configured question access grants that role edit access
Request
Supported Media Types: application/json
Provide the answer value in the JSON request body.
Table 4-82 Request Parameters
| Name | Type | Description | Required |
|---|---|---|---|
reconciliationId
|
Path | ID of the reconciliation associated with the question. | Yes |
questionId
|
Path | ID of the question whose answer is to be updated. | Yes |
| questionValue | Body | Answer value. The field must be present. Its value depends on the question type and may be null where clearing an answer is supported. Omitted and null are not equivalent. | Yes |
Example URL
The following example updates the answer to question 3001 for reconciliation 100000004828309.
PATCH https://<SERVICE_NAME>/arm/rest/rc/v1/reconciliations/100000004828309/questions/3001/answer
Example of Request Body
The following is the request body example provided for this operation.
{
"questionValue": true
}
Response
Supported Media Types: application/json
Returns an object containing the run-time question and its updated answer, including the available list choices.
Table 4-83 Response Parameters
| Name | Description |
|---|---|
questionId
|
Unique question identifier. |
answerId
|
Identifier of the answer associated with the question. |
questionText
|
Text of the question. |
questionType
|
Question type. The example returns YESNO. |
questionValue
|
Answer value. The value depends on the question type; the example returns true. |
required
|
Indicates whether the question requires an answer. |
visible
|
Indicates whether the question is visible. |
editable
|
Indicates whether the question answer is editable for the user. |
orderSeq
|
Display sequence of the question. |
listValues
|
Array of available list choices for the question. |
listValues[].id
|
Identifier of a choice in the listValues array. |
listValues[].label
|
Display label of a choice in the listValues array. |
Example of Response Body
{
"questionId": 3001,
"answerId": 4001,
"questionText": "Has the account been reviewed?",
"questionType": "YESNO",
"questionValue": true,
"required": true,
"visible": true,
"editable": true,
"orderSeq": 1,
"listValues": [
{
"id": 1,
"label": "Yes"
}
]
}