Use this endpoint to change a batch of answers in a check
Request
Request header additional fields
|
Parameter name |
Parameter type |
Parameter description |
|---|---|---|
|
|
string |
The ongoing check identifier |
|
|
In some cases, a question needs to be generated to the check during the change of an answer. This parameter determines the language of the generated question. Rolls back to check's language if not provided. |
Request body parameters
Request body is an array of parameters accepted by PATCH /v1/chatbot/overview/answer endpoint:
Array<{ questionId: string; answer?: { id: string } }>
See detailed type structure here. The maximal number of accepted elements is 100.
Examples
The patient changed the answer of question e38f994b-6464-4c49-8b11-28687031d46d and changed answer of question 183d2cd6-567f-416b-befb-065500cbaf57 to skip:
[
{
"questionId": "e38f994b-6464-4c49-8b11-28687031d46d",
"answer": {
"id": "ebf2b5b3-1d42-40ec-bba0-6a43f9da5b5a"
}
},
{
"questionId": "183d2cd6-567f-416b-befb-065500cbaf57"
}
]
Response
The endpoint returns with status code 200 if the operation was successful.
If any error occurs while processing, the endpoint will return status code 500 with anXAG error.