# PersonalTodo

A personal to-do: one line on your own checklist, the list behind the My to-dos widget on the plnnrly dashboard. A personal to-do belongs to exactly one user and is never shared: the collection is hard-scoped to the authenticated caller with no escape, so there is no permission, filter value or include that reads or writes another user's to-dos. A to-do is open while `completed_at` is null; a completed to-do is deleted automatically 30 days after it was completed.

## Used by
- GET /api/v2/personal-todos: List your personal to-dos (PersonalTodoList)
- POST /api/v2/personal-todos: Add a personal to-do (PersonalTodo)
- GET /api/v2/personal-todos/{personal_todo}: Read a personal to-do (PersonalTodo)
- PATCH /api/v2/personal-todos/{personal_todo}: Update a personal to-do (PersonalTodo)

## PersonalTodo fields
- id (integer, required): Unique identifier.
- user_id (integer, required, server-assigned): The user the to-do belongs to. Always the authenticated caller: this collection has no way to read or write another user's to-dos.
- title (string ≤ 255, required): The to-do line as plain text.
- due_date (date (YYYY-MM-DD) or null, required): The calendar day the to-do is due, or null when it has no due date. Send null to clear it.
- position (integer, required): Place in your list of open to-dos, lowest first; to-dos sharing a position are ordered newest first in plnnrly. Reordering in plnnrly renumbers your open to-dos from 0, so treat it as a snapshot rather than a stable value.
- completed_at (timestamp (YYYY-MM-DDThh:mm:ssZ) or null, required): When the to-do was ticked off, or null while it is open. Send a timestamp to complete it and null to reopen it.
- created_at (timestamp (YYYY-MM-DDThh:mm:ssZ), required): Creation timestamp.
- updated_at (timestamp (YYYY-MM-DDThh:mm:ssZ), required): Last-write timestamp; use for incremental sync.
- links (PersonalTodoLinks, required)
  - self (url, required): The canonical URI of this record.

## Variants

### PersonalTodoList

What a collection returns, and what `?view=summary` returns on a single record.

9 fields.
Identical to the detail object above.

### PersonalTodoLinks

The `links` object on this resource.

Keys: self

## Example
```json
{
  "id": 1,
  "user_id": 1,
  "title": "Send the quarterly report to finance",
  "due_date": "2026-11-06",
  "position": 1,
  "completed_at": "2026-03-04T09:15:00Z",
  "created_at": "2026-03-04T09:15:00Z",
  "updated_at": "2026-03-04T09:15:00Z",
  "links": {
    "self": "https://<your-url>/api/v2/work-items/1"
  }
}
```
