Create a note
POST
/v1/note
const url = 'http://localhost:8090/v1/note';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"text":"example","tag":"finding","actor":"example","nodeIds":["example"],"sessionId":"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/note \ --header 'Content-Type: application/json' \ --data '{ "text": "example", "tag": "finding", "actor": "example", "nodeIds": [ "example" ], "sessionId": "example" }'sessionId may be a session name; the backend resolves it to the id. tag defaults to note.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
text
required
string
tag
string
actor
string
nodeIds
Array<string>
sessionId
Session name or id
string
Responses
Section titled “Responses”The created note
Media typeapplication/json
object
id
required
string
text
required
string
tag
required
string
actor
string
nodeIds
required
Array<string>
at
required
ISO timestamp
string
stale
required
boolean
staleReason
string
Example generated
{ "id": "example", "text": "example", "tag": "example", "actor": "example", "nodeIds": [ "example" ], "at": "example", "stale": true, "staleReason": "example"}