temetro

Tasks

The clinic's shared to-do board.

MethodPathPermission
GET/api/taskstask:read
POST/api/taskstask:write
PATCH/api/tasks/{id}task:write
DELETE/api/tasks/{id}task:delete

The task object

FieldTypeNotes
idstringAssigned by the server
titlestringRequired. Max 200 characters
assigneestringDefaults to "Unassigned"
assigneeRolestring | nullDepartment/role of the assignee
duestringFree text, defaults to "No due date"
priorityenumhigh | medium (default) | low
patientstring | nullLinked patient, if any
notesstring | nullFree text
donebooleanCompletion state
createdByNamestringWho created the task

Examples

# Create
curl -b cookies.txt -X POST http://localhost:4000/api/tasks \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Call Hodan Warsame with lab results",
    "assignee": "Dr. Amina Yusuf",
    "due": "2026-06-12",
    "priority": "high",
    "patient": "Hodan Warsame"
  }'

# PATCH accepts any subset of fields — e.g. just toggle done:
curl -b cookies.txt -X PATCH http://localhost:4000/api/tasks/TASK_ID \
  -H "Content-Type: application/json" \
  -d '{ "done": true }'

PATCH is a partial update — send only the fields you're changing. Create returns 201; delete returns 204.

On this page