temetro

Notes

The caller's private notes.

Notes are author-scoped: every endpoint operates only on the signed-in user's own notes, so no special role permission is required (any clinic member can use them).

MethodPathReturns
GET/api/notesYour notes
POST/api/notes201 + the created note
GET/api/notes/{id}One note
PUT/api/notes/{id}The updated note
DELETE/api/notes/{id}204

The note object

FieldTypeNotes
idstringAssigned by the server
titlestringRequired. Max 200 characters
contentstringRich text stored as HTML; up to 100 000 characters
createdAt, updatedAtstringTimestamps

Example

curl -b cookies.txt -X POST http://localhost:4000/api/notes \
  -H "Content-Type: application/json" \
  -d '{ "title": "Ward round prep", "content": "<p>Check 1042 labs before 9am.</p>" }'

Requesting a note that belongs to someone else returns 404 — notes are never visible across users, regardless of role.

On this page