# Dashboard

One of your dashboards on the plnnrly start page: rows of widgets, each with a place and a width on a grid of 12 columns. Every user has exactly one standard dashboard (`is_default`), which cannot be deleted; any others carry a name and an icon and show as tabs. The collection is hard-scoped to the authenticated caller with no escape: nobody reads or writes another user's dashboards. A standard dashboard with `layout: null` was never changed by its user and shows the dashboard template the organization set up for them (`/api/v2/dashboard-templates`).

## Used by
- GET /api/v2/dashboards: List your dashboards (DashboardList)
- POST /api/v2/dashboards: Add a dashboard (Dashboard)
- GET /api/v2/dashboards/{dashboard}: Read a dashboard (Dashboard)
- PATCH /api/v2/dashboards/{dashboard}: Update a dashboard (Dashboard)

## Dashboard fields
- id (integer, required): Unique identifier.
- user_id (integer, required, server-assigned): The user the dashboard belongs to. Always the authenticated caller.
- name (string or null ≤ 60, required): The name on the dashboard's tab. Null on the standard dashboard, which plnnrly calls "Standard" in the user's language.
- icon (string or null, required): The icon on the dashboard's tab. Null on the standard dashboard, which shows a house.
- is_default (boolean, required, server-assigned): Whether this is the user's standard dashboard, the one the start page opens on. Every user has exactly one, made when it is first needed; it is never created or deleted through the API.
- position (integer, required): The order of the tabs, lowest first, after the standard dashboard.
- customized (boolean, required, server-assigned): Whether the dashboard has a layout of its own. False only on a standard dashboard that follows the user's dashboard template.
- layout (array of object or null, required): The widgets, in the order they are stored. Null on a standard dashboard that follows the user's dashboard template; send null to put it back to the template. Entries that overlap are laid out again as the editor does: a widget moves right, narrows to fit, or goes to a row of its own below. A widget you may not see right now, because of a permission or a feature, is kept when you send a layout without it, so it comes back once you may see it again.
  - id (string, required): The entry's id; `under` names it. Generated when you leave it out.
  - widget (string, required): The widget, by key, such as `worklog` or `recent-projects`.
  - row (integer, required): The row, from 0 at the top.
  - start (integer, required): The first of the 12 columns the widget takes, from 1.
  - columns (integer, required): How many of the 12 columns the widget takes, at least the widget's own minimum. Its maximum is only a recommendation: a widget may take all 12.
  - settings (object, required): The widget's own settings, such as the number of rows. A setting left out takes its default.
  - under (string or null, optional): The `id` of the entry this one sits below, in its place and width: a stack. Null when it stands on its own.
- 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 (DashboardLinks, required)
  - self (url, required): The canonical URI of this record.

## Variants

### DashboardList

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

11 fields.
Identical to the detail object above.

### DashboardLinks

The `links` object on this resource.

Keys: self

## Example
```json
{
  "id": 1,
  "user_id": 1,
  "name": "Sales",
  "icon": "euro",
  "is_default": false,
  "position": 1,
  "customized": false,
  "layout": [
    {
      "id": "…",
      "widget": "…",
      "row": 1,
      "start": 1,
      "columns": 1,
      "settings": {},
      "…": "1 optional field left out"
    }
  ],
  "created_at": "2026-03-04T09:15:00Z",
  "updated_at": "2026-03-04T09:15:00Z",
  "links": {
    "self": "https://<your-url>/api/v2/work-items/1"
  }
}
```
