latestOpenAPI 3.1.02026-08-18112878.7 KB

0b8d2bc38f5d

Decisions

Response - Respond with an answer to a question

If you have received a questionResponse from the query, response or undo endpoints, you can submit an array of answers. These must be provided as triples.<br><br> Note: properties returned in the question object will determine how you can respond.

post/{sessionID}/response

Path parameters

sessionIDstring required

The session to send responses to

Request body

Example request

{
  "answers": [
    {
      "subject": "Ben",
      "relationship": "suffered",
      "object": "water damage",
      "certainty": 100
    }
  ]
}

Response

An answer if one is reached, or a question

OR

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"
}