---
title: "Replace a dashboard definition"
method: PUT
path: "/dashboards/{id}"
tags: ["Dashboards"]
---

# Replace a dashboard definition

`PUT /dashboards/{id}`

## Path parameters

- `id` string, required

## Request body

- DashboardInput
  - `name` string, required
  - `panels` Panel[], required
    - `id` string, required
    - `title` string, required
    - `type` 'timechart' | 'table' | 'bar' | 'line' | 'area' | 'stat' | 'pie', required
    - `q` string, required
    - `from` string
    - `position` PanelPosition, required
      - `x` integer, required
      - `y` integer, required
      - `w` integer, required — Width in grid units (12-column grid)
      - `h` integer, required — Height in grid units
  - `variables` DashboardVariable[]
    - `name` string, required
    - `type` 'field_values' | 'custom', required
    - `field` string, required
    - `default` string
    - `label` string

## Response `200`

Updated

- DashboardResponse
  - `data` Dashboard, required
    - `id` string
    - `name` string
    - `panels` Panel[]
      - `id` string, required
      - `title` string, required
      - `type` 'timechart' | 'table' | 'bar' | 'line' | 'area' | 'stat' | 'pie', required
      - `q` string, required
      - `from` string
      - `position` PanelPosition, required
        - `x` integer, required
        - `y` integer, required
        - `w` integer, required — Width in grid units (12-column grid)
        - `h` integer, required — Height in grid units
    - `variables` DashboardVariable[]
      - `name` string, required
      - `type` 'field_values' | 'custom', required
      - `field` string, required
      - `default` string
      - `label` string
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `404` — Resource not found

## Changes

- **2026-03-03** `7141381739ac` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/lynxbase/apis/lynxdb-api/changes/dashboards/:id/put.md)

---

[API](https://skmtc.dev/lynxbase/apis/lynxdb-api.md) · [All operations](https://skmtc.dev/lynxbase/apis/lynxdb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lynxbase/lynxdb-api/revisions/9aec01bc7511/schema)
