---
title: "Import dashboard."
method: POST
path: "/dashboards/import"
tags: ["dashboards"]
---

# Import dashboard.

`POST /dashboards/import`

## Request

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

## Request body

- ImportDashboardRequest
  - `dashboard` Json
  - `folderId` integer: Deprecated: use FolderUID instead
  - `folderUid` string
  - `inputs` ImportDashboardInput[]
    - `name` string
    - `pluginId` string
    - `type` string
    - `value` string
  - `overwrite` boolean
  - `path` string
  - `pluginId` string

## Response `200`

(empty)

- ImportDashboardResponse
  - `dashboardId` integer
  - `description` string
  - `folderId` integer: Deprecated: use FolderUID instead
  - `folderUid` string
  - `imported` boolean
  - `importedRevision` integer
  - `importedUri` string
  - `importedUrl` string
  - `path` string
  - `pluginId` string
  - `removed` boolean
  - `revision` integer
  - `slug` string
  - `title` string
  - `uid` string

## 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.
- `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)
