---
search:
  tags:
    - Metrics Dashboards
    - PUT
seo:
  description: >-
    Update a dashboard by ID. Reference for the PUT
    /v1/metrics/dashboards/id/{dashboard_id} endpoint in the Roboto REST API.
sidebar:
  label: Update dashboard
  badge: PUT
title: Update dashboard
type: openapi-operation
---
Update a dashboard by ID.

Authorization rules (ownership is the sole source of truth — a dashboard is
org-wide exactly when ``owner_principal_id`` is the org principal):
- Org-wide dashboards are communal: any org member can update all fields, rename
  included. Retiring one to a personal dashboard (an ``accessibility`` request
  away from ``organization``) is admin-only, since it takes the dashboard away
  from the whole org.
- Personal (user-owned) dashboards: the owner and org admins can update all
  fields, name included. Any other caller receives 401 Unauthorized. An admin
  rename that lands on a (name, owner) pair the OWNER already holds still returns
  409 Conflict via the unique constraint, which keys on the dashboard's owner
  rather than on who performs the update.

A definition write must carry ``base_revision`` (the revision the caller loaded). If the
stored definition has advanced since, the write is rejected with 409
``RobotoDashboardRevisionConflictException``, carrying the server's current record so the
caller can resolve without a second round trip. The check runs under the row lock in the
persistence layer, not against the authorization fetch below.

#### Access control
 - requires_org
 - Restricted tokens need the API scope `api.everything_else`

`PUT /v1/metrics/dashboards/id/{dashboard_id}`

**Request body** (`application/json`, required)

- `accessibility` (DashboardAccessibility | null)
- `base_revision` (integer | null)
- `dashboard_definition` (object | null)
- `name` (string | null)

Request body example:

```json
{
  "accessibility": "organization",
  "base_revision": 0,
  "dashboard_definition": {},
  "name": "string"
}
```

**Responses**

- `200` — OK
- `400` — A conversation with Roboto's AI is longer than the AI model can read at once. The conversation's messages and tool results, together with the AI's instructions, exceed the model's context window. The exception does not carry the token count or the model's limit.
- `401` — The caller's token is expired or malformed.
- `403` — The request would take the user or organization past a limit on a resource, such as AI credits.
- `404` — The request names an API route Roboto does not serve.
- `409` — The request conflicts with an existing resource, such as by giving a name another resource already has.
- `410` — The resource the request names is missing or has expired.
- `500` — Roboto reported an error that this release of the SDK cannot match to a specific exception class. Reported for an element of a :py:class:\`\~roboto.http.BatchResponse\` whose error names a code this release defines no class for, or that arrived without a code, without a message, or as text that is not an error envelope at all. It carries whatever code and message Roboto sent, so a caller handling the failure still learns what went wrong; when no message could be read, the message is the error's raw text. :py:meth:\`\~roboto.domain.devices.Device.create\_session\` raises it, and :py:meth:\`\~roboto.domain.devices.Device.create\_sessions\` lists it in the batch's :py:attr:\`\~roboto.http.BatchResponse.failed\`. The error envelope carries no status code, so \`\`http\_status\_code\`\` reports the 500 inherited from \`\`RobotoDomainException\`\` rather than the status the failure had.
- `501` — The request asks for an operation this deployment of Roboto does not provide.
- `503` — Roboto could not accept the request, such as under heavy load. Retrying later may succeed.
- `504` — Roboto ran out of time while processing the request. Retrying may succeed.
- `507` — The response to the request is larger than Roboto can send. Retrying the same request fails the same way; request less data at a time.

Response example, 200:

```json
{
  "data": null
}
```
