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
claimIdstringRequirednotestringRequired
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
- authentication_required
- invalid_json
- parameter_invalid
- parameter_missing
- rate_limit_exceeded
- resource_missing
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();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/attest/cases/CLM-SANDBOX-CLEAN/notes", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
"note": "Called the policyholder to confirm the date of loss"
}).json()