---
title: "Create / Update dashboard"
method: POST
path: "/dashboards/db"
tags: ["dashboards"]
deprecated: true
---

# Create / Update dashboard

`POST /dashboards/db`

## Request

- Base URL: `/api` (relative, and the document’s source URL is not known)
- URL: `/api/dashboards/db`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

> **Deprecated.**

Creates a new dashboard or updates an existing dashboard.
Note: This endpoint is not intended for creating folders, use `POST /api/folders` for that.

Use: /apis/dashboard.grafana.app/v1/namespaces/{ns}/dashboards

## Request body

- SaveDashboardCommand
  - `UpdatedAt` string, date-time
  - `dashboard` Json
  - `folderId` integer: Deprecated: use FolderUID instead
  - `folderUid` string
  - `isFolder` boolean
  - `message` string
  - `overwrite` boolean
  - `userId` integer

## Response `200`

(empty)

- object
  - `folderUid` string: FolderUID The unique identifier (uid) of the folder the dashboard belongs to.
  - `id` integer, required: ID The unique identifier (id) of the created/updated dashboard.
  - `status` string, required: Status status of the response.
  - `title` string, required: Slug The slug of the dashboard.
  - `uid` string, required: UID The unique identifier (uid) of the created/updated dashboard.
  - `url` string, required: URL The relative URL for accessing the created/updated dashboard.
  - `version` integer, required: Version The version of the dashboard.

## Other responses

- `400`: BadRequestError is returned when the request is invalid and it cannot be processed.
- `401`: UnauthorizedError is returned when the request is not authenticated.
- `403`: ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
- `404`: NotFoundError is returned when the requested resource was not found.
- `412`: PreconditionFailedError
- `422`: UnprocessableEntityError
- `500`: InternalServerError is a general error indicating something went wrong internally.

---

[API](https://skmtc.dev/grafana/apis/grafana-http-api.md) - [All operations](https://skmtc.dev/grafana/apis/grafana-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grafana/apis/grafana-http-api/revisions/df55ba1718ba?raw)
