latestOpenAPI 3.1.02026-08-18112878.7 KB

0b8d2bc38f5d

Decisions

Inject - Inject facts into a session

Inject an array of facts as triples. For large requests we recommend injecting in batches of 250 facts.

post/{sessionID}/inject

Path parameters

sessionIDstring required

The session to inject facts into

Request body

subjectstring required

The subject side concept instance or value

relationshipstring required

The relationship between subject and object

certaintynumber required

How certain this fact or answer is

Example request

[
  {
    "subject": "Ben",
    "relationship": "holds",
    "object": "Gold",
    "certainty": 100
  }
]

Response

Facts were injected successfully

resultstring

Example response

{
  "result": "OK"
}