latestOpenAPI 3.1.02026-08-18112878.7 KB
0b8d2bc38f5d
Decisions
Undo - Undoes the previous answer
A method to undo the previous answer array posted to the response endpoint. This rolls back the session, removing any facts inferred from the answer array and returns the original question. A different answer can be provided or undo can be used again to further roll-back the session.<br><br> Note: when there are no further answers to undo, the same question will be returned.
post/{sessionID}/undo
Path parameters
sessionIDstring required
The session to step back with an undo
Request body
object required
Example request
{}Response
Session stepped back to a previous question or result
Example response
{
"question": {
"subject": "Ben",
"dataType": "string",
"relationship": "suffered",
"type": "Second Form Object",
"plural": true,
"allowCF": true,
"allowUnknown": false,
"canAdd": true,
"prompt": "What type of loss has Ben suffered?",
"knownAnswers": [],
"concepts": [
{
"conceptType": "loss",
"name": "cosmetic damage",
"type": "string",
"value": "cosmetic damage"
},
{
"conceptType": "loss",
"name": "water damage",
"type": "string",
"value": "water damage"
},
{
"conceptType": "loss",
"name": "loss",
"type": "string",
"value": "loss"
},
{
"conceptType": "loss",
"name": "theft",
"type": "string",
"value": "theft"
}
]
},
"sid": "c1bf18d7-d1f0-44bc-a639-8cd4ded56dce"
}