SDK reference · Node SDK

prov.attest.cases.addNote

prov.attest.cases.addNote in Node SDK. Append a free-text note to the case history.

Signature

prov.attest.cases.addNote(claimId: string, note: string): Promise<{ eventId: string; caseId: string; note: string; createdAt: string }>

Parameters

claimIdstringRequired
notestringRequired

Request fields

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).
claim_idstringpathRequired
The claim, or case in another vertical, the asset belongs to.
notestringRequired
A note for the record.

Returns

Promise<{ eventId: string; caseId: string; note: string; createdAt: string }> The note, as a case event.

HTTP operation

POST /v1/attest/cases/{claim_id}/notes: Add a case note

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/cases/CLM-SANDBOX-CLEAN/notes`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ "note": "Called the policyholder to confirm the date of loss" }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.