Replace a note, linking the new one to it
POST
/v1/note/{id}/supersede
const url = 'http://localhost:8090/v1/note/example/supersede';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/example/supersede \ --header 'Content-Type: application/json' \ --data '{ "text": "example", "tag": "finding", "actor": "example", "nodeIds": [ "example" ], "sessionId": "example" }'Not idempotent: every call creates a new note. Only the note’s author (or an org admin) may supersede it.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
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 old note’s id and the new note
Media typeapplication/json
object
status
string
oldNoteId
string
newNote
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
{ "status": "superseded"}