Record a decision
POST
/v1/decide
const url = 'http://localhost:8090/v1/decide';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"title":"example","rationale":"example","intentId":"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/decide \ --header 'Content-Type: application/json' \ --data '{ "title": "example", "rationale": "example", "intentId": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
title
required
string
rationale
required
string
intentId
string
Examplegenerated
{ "title": "example", "rationale": "example", "intentId": "example"}Responses
Section titled “ Responses ”Created decision
Media typeapplication/json
object
status
string
nodeId
string
rev
integer
Examplegenerated
{ "status": "example", "nodeId": "example", "rev": 1}