# prov.attest.cases.addNote

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

## Signature

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

## Parameters

- `claimId` (string)
- `note` (string)

## Returns

`Promise<{ eventId: string; caseId: string; note: string; createdAt: string }>`

## HTTP operation

[`POST /v1/attest/cases/{claim_id}/notes`](https://provenanceauth.com/docs/api/cases.md#post-v1-attest-cases-claim-id-notes): Add a case note

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

## Example

**Node**

```ts
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();
```

**Python**

```python
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()
```
