# Update a task

`PATCH /api/v1/tasks/{id}`

Only the fields you send change. `status: Tamamlandı` completes the task (`done_on` picks the day). `PUT` and `POST` are accepted too.

## Path parameters

| Field | Type | Description |
|---|---|---|
| `id` (required) | integer | Task id. |

## Body

| Field | Type | Description |
|---|---|---|
| `title` | string | Title. |
| `detail` | string | Details. |
| `due_date` | string | Due date. |
| `due_time` | string | Time (HH:MM). |
| `priority` | string | Priority. Values: `Düşük`, `Normal`, `Yüksek`, `Acil` |
| `status` | string | Status. Values: `Açık`, `Devam Ediyor`, `Tamamlandı` |
| `done_on` | string | Completion day. |
| `assigned_to` | integer | Assignee. |

## Response

```json 200
{
  "ok": true,
  "task": {
    "assignee": {
      "full_name": "Deniz Aksoy",
      "id": 1,
      "role": "admin",
      "role_label": "Yönetici",
      "username": "admin"
    },
    "completed_at": null,
    "customer": "Kuzey Plastik Sanayi",
    "customer_id": 31,
    "detail": "2027 listesi, €/kg",
    "due_date": "2026-10-04",
    "due_time": "09:00",
    "id": 23,
    "opp": "",
    "opp_id": null,
    "priority": "Acil",
    "result": "",
    "rid": "00TxuMVTniYx44l",
    "source_key": "",
    "state": "soon",
    "status": "Açık",
    "title": "Fiyat listesini gönder"
  }
}
```
