Mudawin

Part: For developers · Chapter 39 of 41

Tasks and decisions

What came out of the meeting: who committed to what, and what was agreed.

This chapter describes screens only an administrator can open. Read it to know what happens there, even if those screens are not visible to you.


A meeting's tasks

GET /api/v1/meetings/6014/tasks

Response — 200

{
  "data": [
    {
      "id": 3067,
      "meeting_id": 6014,
      "title": "Review the budget",
      "status": "Open",
      "due_date": "2026-08-10T00:00:00Z",
      "assignee": { "id": 1, "name": "Mohammed Nayel" }
    }
  ]
}

assignee may be null. A task the analysis took from a sentence that named nobody is not a data error — it is a commitment somebody made without saying whose it was, which happens in meetings constantly. The id inside it is the important part: a name alone is not enough when two people share one.


Close a task, or re-open it

PATCH /api/v1/tasks/3067
Content-Type: application/json

{ "status": "Done" }

Response — 200

{ "id": 3067, "status": "Done" }

Idempotent. Sending Done for a task that is already done succeeds and changes nothing. Deliberately: a system retrying a request whose answer it never saw must not re-open what it just closed — which is exactly what a "toggle" would do.

Error
400 status_required Open or Done, nothing else
403 read_only_key
404 task_not_found it does not exist, or it is not yours

Decisions

GET /api/v1/decisions?meeting_id=6014&limit=25

meeting_id is optional; without it you get the organization's decisions, newest first.

Response — 200

{
  "data": [
    {
      "id": 1036,
      "meeting_id": 6014,
      "meeting_title": "Budget review",
      "text": "Approve the Q3 budget as presented",
      "owner": "Mohammed Nayel",
      "decided_at": "2026-08-09T07:00:00Z"
    }
  ]
}

decided_at is the meeting's time, not the row's. A March meeting re-analysed today is still a March decision; sorting by when the row was written would put a five-month-old decision at the top of the list.