Create a goal/truth statement
POST
/v1/truth
const url = 'http://localhost:8090/v1/truth';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"statement":"example","parentIntent":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8090/v1/truth \ --header 'Content-Type: application/json' \ --data '{ "statement": "example", "parentIntent": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
statement
required
string
parentIntent
string
Examplegenerated
{ "statement": "example", "parentIntent": "example"}Responses
Section titled “ Responses ”Created artifact
Media typeapplication/json
object
status
string
nodeId
string
rev
integer
Examplegenerated
{ "status": "example", "nodeId": "example", "rev": 1}